I am using identity framework in my webapi project. I have created just a default project with [individual user accounts] as visual studio generates.
Now problem is that when i try to access the Token URL like http://localhost:58546/Token
but it returns the (Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:58546/Token . This can be fixed by moving the resource to the same domain or enabling CORS) issue.
I have enabled the cors in Apiconfig file like config.EnableCors();
Please help!!
您可以运行静态配置的IIS站点,也可以按照以下http://enable-cors.org/server_aspnet.html中的代码进行操作。
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.