nestoram Posted September 25, 2020 Posted September 25, 2020 Hello, I'm trying to make a request to the API through javascript/ajax and I'm getting this error: Access to XMLHttpRequest at 'https://api.loyverse.com/v1.0/items' from origin 'http://nesdevel.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status. What would I be missing? Thanks!
Featured Comment andres Posted September 25, 2020 Featured Comment Posted September 25, 2020 Hello! This is impossible for security reasons. You can use some kind of middleware software for this, for example, nginx as a proxypass server. 1
lordie Posted February 5, 2021 Posted February 5, 2021 Hey, I hope I'm not bothering, but what security reasons? I'm learning cors and I assumed that a password protected api wouldn't need it
Recommended Posts
Posted by andres,
Solution
Recommended by andres
1 reaction
Go to this post