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 issue for local dev #187

Open
deltawi opened this issue May 25, 2021 · 0 comments
Open

CORS issue for local dev #187

deltawi opened this issue May 25, 2021 · 0 comments

Comments

@deltawi
Copy link

deltawi commented May 25, 2021

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 "username=a@b.c&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 ?

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