Skip to content

Cors is not handled #3

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

Open
Mohitrajranu opened this issue Jul 21, 2021 · 1 comment
Open

Cors is not handled #3

Mohitrajranu opened this issue Jul 21, 2021 · 1 comment

Comments

@Mohitrajranu
Copy link

Mohitrajranu commented Jul 21, 2021

When submitting request from frontend , cors issue is getting triggered although it can be resolved if in the ResourceServerConfig.java you can add Cors configurationSource bean and in http.cors() and also in the api gateway class add CorsFilter class and annotate it as @component. After doing this for catalog product service we no longer get cors policy issue but the same code is not working when we call signup service as we get error Request header field authorization is not allowed by Access-Control-Allow-Headers , although we have added the said Authorization headers in cors configuration , but when account/oauth/token api is called at time of registering user we get the error

@Mohitrajranu
Copy link
Author

Was able to solve the cors issue after handing the oauth token implementation to handle Options Method type in Authorization server config class

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