cowinapi / developer.cowin

This group is created to facilitate technical and integration discussions related to cowin platform. API related contents can be obtained at API setu portal https://apisetu.gov.in/public/marketplace/api/cowin
115 stars 30 forks source link

Getting CORS error while accessing any protected API #510

Closed ayushagarwalMB closed 3 years ago

ayushagarwalMB commented 3 years ago

I am getting the following error while trying to access the Protected APIs via my application. This works perfectly on Postman and other rest clients though.

vaccine_finder:1 Access to XMLHttpRequest at 'https://cdn-api.co-vin.in/api/v2/admin/location/states' from origin 'http://rules1.maxbupa.com' 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.

image