简体   繁体   中英

angularjs 7 Access-Control-Allow-Origin blocked by cors policy

Access to XMLHttpRequest at
http://badamirchi.com/wldev/api/Services//SignIn
from origin
http://localhost:4200 has been blocked by CORS policy:

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Below is the issue I am getting.

下面的问题越来越

It looks like eithr you need to set more appropriate CORS headers or the resource you are trying to access doesnt allow localhost domain access. Do you have an API key setup with this service? You may need to add localhost into your approved domains (Google AUTH requires this)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM