-
Notifications
You must be signed in to change notification settings - Fork 150
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 issue for local dev #187
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all,
I am trying to use the loginsrv on my local machine. My frontend is calling the API using localhost but I get :
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8090/login
The login works in command line:
curl --data "[email protected]&password=azerty" 127.0.0.1:8090/login eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhQGIuYyIsIm9yaWdpbiI6InNpbXBsZSIsImV4cCI6MTYyMTg1NjE1Mn0.U9uut1eHE2C1aHYW6Z00wAl8WLe0Xvy1nacSlAf2Pr3A8jh29ecNgjAB5ipHbpuit_30YRROALYCHZnsA2xnsw
I've been reading about the CORS issue, and it says that the response header should contain
Access-Control-Allow-Origin = http://localhost:4200
but I don't know where I can configure that ?The text was updated successfully, but these errors were encountered: