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

API Fetch Block Due to CORS #2

Closed
JacobGrisham opened this issue Apr 22, 2021 · 1 comment
Closed

API Fetch Block Due to CORS #2

JacobGrisham opened this issue Apr 22, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JacobGrisham
Copy link
Owner

Issue tracker is ONLY used for reporting bugs. New features should be discussed on our slack channel. Please use stackoverflow for supporting issues.

Access to fetch at 'https://jsonplaceholder.typicode.com/users' from origin 'https://jacobgrisham.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Expected Behavior

Fetch at 'https://jsonplaceholder.typicode.com/users' should be successful
Screen Shot 2021-04-22 at 2 31 57 PM

Current Behavior

Fetch at 'https://jsonplaceholder.typicode.com/users' is blocked by CORS
Screen Shot 2021-04-22 at 2 09 58 PM

Possible Solution

Add API to CORS whitelist

Steps to Reproduce

Visit https://jacobgrisham.github.io/React.js-Advanced-Hooks-and-Redux/

@JacobGrisham JacobGrisham added the bug Something isn't working label Apr 22, 2021
@JacobGrisham JacobGrisham self-assigned this Apr 22, 2021
@JacobGrisham
Copy link
Owner Author

The problem seems to have resolved itself. Every time I visit https://jacobgrisham.github.io/React.js-Advanced-Hooks-and-Redux/, I get the expected behavior consistently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant