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

postman doing preflight request and CORS header check #2845

Closed
mrghosh opened this issue Mar 25, 2017 · 12 comments
Closed

postman doing preflight request and CORS header check #2845

mrghosh opened this issue Mar 25, 2017 · 12 comments

Comments

@mrghosh
Copy link

mrghosh commented Mar 25, 2017

I am using postman to debug qbittorrent API. qbittorrent API doesn't send 'Access-Control-Allow-Origin' header. So, all XHR request made by postman is failing.

Previously, I used ARC(advanced rest client) extension, and It had an option to "disable" XHR. So, It worked fine according to my scenario.

Is there any way postman can be helpful in my case?

  1. Postman Version: Version 4.10.4
  2. App (Chrome app or Mac app): Chrome
  3. OS details: win / x86-64
  4. Is the Interceptor on and enabled in the app: No
  5. Did you encounter this recently, or has this bug always been there: N/A
  6. Expected behaviour: N/A
  7. Console logs:
    XMLHttpRequest cannot load http://127.0.0.1:8118/version/api. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop' is therefore not allowed access.
  8. Screenshots (if applicable)
@mrghosh mrghosh changed the title Use other methods than XHR alternative to XHR Mar 25, 2017
@numaanashraf
Copy link
Member

@souravndp That's odd. Postman should not be doing a preflight request and CORS header check. Could you let us know your OS and exact Chrome version too? We'll look into this. In the meantime, you could try our native apps (www.getpostman.com/apps) which do not use XHR.

@mrghosh
Copy link
Author

mrghosh commented Mar 27, 2017

I didn't think about this before but now I realized chrome allows extension and apps to make XHR.

My OS is Windows 10 64 bit. Chrome Version 56.0.2924.87 (64-bit)

capture

@mrghosh mrghosh changed the title alternative to XHR postman doing preflight request and CORS header check Mar 27, 2017
@numaanashraf
Copy link
Member

Thanks for the screenshot, @souravndp. We are taking a look at this.

@numaanashraf
Copy link
Member

Hey @souravndp, could you send us a screenshot of the Network tab with the failed request? Something like
screen shot 2017-03-27 at 10 53 24 pm

@mrghosh
Copy link
Author

mrghosh commented Mar 27, 2017

image

image

image

@prashantagarwal
Copy link

@souravndp Can you switch to Postman native apps and verify if you are still facing this issue

@profporridge
Copy link

I switched to the postman app and I am getting the CORS error

@azoz158-zz
Copy link

Any solution yet?

1 similar comment
@PeterMen
Copy link

Any solution yet?

@PeterMen
Copy link

image

@geoidesic
Copy link

Is it possible to switch preflight checks on for postman?

@tkirankumar786
Copy link

@souravndp Can you switch to Postman native apps and verify if you are still facing this issue

it working for postman native apps but how

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants