azharimm / phone-specs-api

Phone specifications API
https://phone-specs-api-2.azharimm.dev/
155 stars 45 forks source link

CORS policy #5

Open linardsblk opened 3 years ago

linardsblk commented 3 years ago

Is there a chance you can you can change your Access-Control-Allow-Origin http headers?

I get this while trying to implement in a front-end browser project. Access to XMLHttpRequest at 'https://api-mobilespecs.azharimm.site/v2/search?query=asd' from origin 'xxx has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://azharimm.tk' that is not equal to the supplied origin.