apilayer / restcountries

Get information about countries via a RESTful API
https://restcountries.eu
Mozilla Public License 2.0
2.24k stars 355 forks source link

CORS enabled ? #96

Closed mrtplnkr closed 3 years ago

mrtplnkr commented 6 years ago

Hello is your services not CORS enabled ? Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response

AlexandreBonfim commented 5 years ago

Did you find a solution? I was receiving the country names last week and now is complain about CORS.

TheAifam5 commented 5 years ago

I have the same problem too.

abhi78439 commented 5 years ago

Same issue with me too

martatenes commented 5 years ago

Same issue here. Any solution?

TheAifam5 commented 5 years ago

Yea, prefetch data in API then send back to frontend.

tonivj5 commented 5 years ago

CORS are OK, verify what headers are you sending https://github.com/apilayer/restcountries/issues/73#issuecomment-342815331