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

[Feature request]Add option to allow CORS request #10478

Open
CzBiX opened this Issue Apr 11, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@CzBiX
Copy link
Contributor

CzBiX commented Apr 11, 2019

What is the problem

Can't access Web API on another website due to CORS policy. The Web API response missing CORS headers, such as Access-Control-Allow-Origin, Access-Control-Allow-Credentials, Access-Control-Allow-Methods.

What is the expected behavior

Other website can access Web API with CORS request.

Steps to reproduce

Use XMLHttpRequest to access Web API from another website.

Extra info(if any)

Browser error log in console:

Access to XMLHttpRequest at 'http://api.server/api/v2/app/version' from origin 'http://another.site/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.