Open varshaneya opened 3 years ago
make sure you are using Content-Type: application/json
header and proper method (post, get).
Where is the option to set the content type in the swagger provided in the website:
@varshaneya, it's not about API. Its general practice to ad required headers while using RESTrequests. Depends on which language/platform you are using.
Also, what I have realized from your error, is that you are somehow adding a language header that is not being accepted by API end pint.
Make sure you are sending an authorization header with GET request, as findByPin is a protected API. If you can give more details about your implementation, it will be easy to understand.
If you are trying from https://apisetu.gov.in/ then you need an auth token.
Hello, Encountered CORS issue while using the swagger provided in https://apisetu.gov.in/public/marketplace/api/cowin#/
Can this be sorted out? Thank you