-
Notifications
You must be signed in to change notification settings - Fork 680
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
Swagger UI CORS problem #1156
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When adding to swagger documentation any header (in my case x-api-key) getting error
Access to fetch at 'http://127.0.0.1:11600/........' from origin 'http://localhost:11500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Actually, I have this code
Also, without x-api-key header AccessControlAllowOrigin works fine can anyone help, please?
The text was updated successfully, but these errors were encountered: