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

Frontend - CORS Policy Error #13

Closed
julio1927 opened this issue Feb 16, 2021 · 1 comment
Closed

Frontend - CORS Policy Error #13

julio1927 opened this issue Feb 16, 2021 · 1 comment
Assignees
Labels
bug Something isn't working development

Comments

@julio1927
Copy link
Collaborator

julio1927 commented Feb 16, 2021

CORS Policy Error when fetching data from local api

Cause of error: The response to the CORS request is missing the required Access-Control-Allow-Origin header
Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any other origins (domain, scheme, or port) than its own from which a browser should permit loading of resources

Temporary Fix for use of 1 api call is to use proxy "proxy": "http://localhost:54501" in package.json

https://www.youtube.com/watch?v=hxyp_LkKDdk&ab_channel=HongLy

@julio1927 julio1927 created this issue from a note in Skeleton E-Commerce (To do) Feb 16, 2021
@julio1927 julio1927 self-assigned this Feb 16, 2021
@julio1927 julio1927 added bug Something isn't working development labels Feb 16, 2021
@julio1927 julio1927 moved this from To do to In progress in Skeleton E-Commerce Feb 16, 2021
@julio1927 julio1927 moved this from In progress to Done in Skeleton E-Commerce Feb 18, 2021
@hyunbin7303
Copy link
Owner

@julio1927 What is the root cause of this issue?

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

No branches or pull requests

2 participants