Skip to content

In async example fetch request is disallowed #1209

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

Closed
ajile-in opened this issue Jan 7, 2016 · 7 comments · Fixed by #1213
Closed

In async example fetch request is disallowed #1209

ajile-in opened this issue Jan 7, 2016 · 7 comments · Fixed by #1213

Comments

@ajile-in
Copy link

ajile-in commented Jan 7, 2016

When I ran the 'async' example, I got following error in chrome.

https://github.com/rackt/redux/tree/master/examples/async

Error - "XMLHttpRequest cannot load http://www.reddit.com/r/reactjs.json. The request was redirected to 'https://www.reddit.com/r/reactjs.json', which is disallowed for cross-origin requests that require preflight."

asyncapp-error

@ajile-in ajile-in changed the title async example fetch request is disallowed In async example fetch request is disallowed Jan 7, 2016
@ajile-in
Copy link
Author

ajile-in commented Jan 7, 2016

I restarted my browser with following command, and it accepts the request now.

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="C:/Chrome Insecure Session" --disable-web-security

@ajile-in ajile-in closed this as completed Jan 7, 2016
@gaearon
Copy link
Contributor

gaearon commented Jan 7, 2016

It used to work :-/
Is there anything we can do on our side?

@ajile-in
Copy link
Author

ajile-in commented Jan 7, 2016

Nothing :). As you figured out.. I am new to JavaScript.

@gaearon
Copy link
Contributor

gaearon commented Jan 8, 2016

Should be fixed now.

@pke
Copy link

pke commented Feb 22, 2016

Still doesn't work:

Fetch API cannot load https://www.reddit.com/r/reactjs.json. The request was redirected to a URL
('about:blank') which has a disallowed scheme for cross-origin requests.

@gaearon
Copy link
Contributor

gaearon commented Feb 22, 2016

@pke Try disabling browser extensions: https://bugs.chromium.org/p/chromium/issues/detail?id=360583#c9

@pke
Copy link

pke commented Feb 22, 2016

Ups! Disconnect was interfering! Thanks!

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

Successfully merging a pull request may close this issue.

3 participants