Forum

ASP.NET Web API Err...
 
Notifications
Clear all

ASP.NET Web API Error: Can't read from server. It may not have the appropriate access-control-origin settings.

2 Posts
1 Users
0 Reactions
814 Views
Posts: 24
Admin Registered
Topic starter
(@rijwan-ansari)
Illustrious Member
Joined: 4 years ago

ASP.NET Web API Error:  Can't read from server. It may not have the appropriate access-control-origin settings.

 

1 Reply
Posts: 24
Admin Registered
Topic starter
(@rijwan-ansari)
Illustrious Member
Joined: 4 years ago

Firstly, enable the CORS.

And then,

This is because of https or SSL.

If you observe carefully the actual URL is secure i.e. https and swagger docs URL is without SSL i.e. http.

So change to SSL or https, then you will be able to resolve the issue.

Reply
Share: