Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to login on web (https://app.insomnia.rest/app/authorize) with CORS issue #7647

Open
1 task done
2hyjun opened this issue Jul 3, 2024 · 10 comments
Open
1 task done
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@2hyjun
Copy link

2hyjun commented Jul 3, 2024

Expected Behavior

  1. Pressed Login button on Insomnia Mac OS application (2023.2.2)
  2. Chrome has been opened and redirected to https://app.insomnia.rest/app/authorize
  3. Login via Google and succeeded
  4. I have entered my correct passphrase, and it should be continued.

Actual Behavior

If I enter my passphrase and continue,

  1. 'Invalid passphrase, please try again' error is appearing.

It is the correct passphrase, and I did reset it several times

Access to fetch at 'https://api.insomnia.rest/auth/web-login-s' from origin 'https://app.insomnia.rest' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.
Failed to load resource: net::ERR_FAILED

And using CORS extensions doesn't work.

Reproduction Steps

You can see expected behavior

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2023.2.2

What operating system are you using?

macOS

Operating System Version

13.2.1 (22D68)

Installation method

download from insomnia.rest

Last Known Working Insomnia version

No response

@2hyjun 2hyjun added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Jul 3, 2024
@2hyjun
Copy link
Author

2hyjun commented Jul 3, 2024

CleanShot.2024-07-03.at.15.11.48.mp4

@filfreire
Copy link
Member

@2hyjun are you by any chance using a Proxy or a VPN?

@2hyjun
Copy link
Author

2hyjun commented Jul 8, 2024

@filfreire yes, I have a proxy for corporate security 😢.
Is there any ways to login with the Proxy?

@filfreire
Copy link
Member

filfreire commented Jul 12, 2024

@2hyjun I encourage you to try the latest beta version https://github.com/Kong/insomnia/releases/tag/core%409.3.3-beta.0

There is a new setting there that should help:

image

In your case you could try to disable the setting. Let us know if it helped.

@filfreire filfreire mentioned this issue Jul 12, 2024
1 task
@2hyjun
Copy link
Author

2hyjun commented Jul 16, 2024

@filfreire
Unfortunately, It doesn't work.
Can the settings you mentioned above resolve my CORS error on the web?

CleanShot.2024-07-16.at.15.58.13.mp4

@monecchi
Copy link

Same here.

Access to fetch at 'https://api.insomnia.rest/auth/web-login-s' from origin 'https://app.insomnia.rest' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.Understand this error
api.insomnia.rest/auth/web-login-s:1 
        
        
       Failed to load resource: net::ERR_FAILED

@notjaywu
Copy link
Contributor

@monecchi @2hyjun I wonder if you enable any CORS plugin that blocks this request?

@monecchi
Copy link

monecchi commented Aug 30, 2024 via email

@notjaywu
Copy link
Contributor

notjaywu commented Sep 1, 2024

@monecchi Can you review if any Chrome plugin or security policy will remove the Origin header or reset it to *? I'd suggest you use another browser.

image

@gatzjames
Copy link
Contributor

Hey 👋 everyone! For anyone having this issue because of a proxy config in their machine,
we have an update in v10.1.0-beta where Insomnia now respects the System Proxy config if it's there.
Please try the latest beta and let us know if it works as expected for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

5 participants