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

CORS error when trying to run via npm run start #61

Open
Erudition opened this issue Oct 2, 2021 · 0 comments
Open

CORS error when trying to run via npm run start #61

Erudition opened this issue Oct 2, 2021 · 0 comments

Comments

@Erudition
Copy link

It launches the browser to localhost:3000, which loads the web page, but as soon as you try to use it nothing happens.
The API is running on port 8080 apparently, so this is a CORS violation as they are considered different domains.

Here is what gets spammed in the console:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/api/projects. (Reason: CORS request did not succeed)

I found https://stackoverflow.com/questions/31602697/webpack-dev-server-cors-issue and other possible solutions, but I couldn't find where to put it, as there doesn't seem to be a server in this repo.

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

1 participant