1
votes

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!!

1

1 Answers

0
votes

You can run a statically configured IIS site or do it in code as detailed here http://enable-cors.org/server_aspnet.html