nestoram Posted September 25, 2020 Share 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! Link to comment Share on other sites More sharing options...
Featured Comment andres Posted September 25, 2020 Featured Comment Share 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 Link to comment Share on other sites More sharing options...
lordie Posted February 5, 2021 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Posted by andres,
Solution
Recommended by andres
1 reaction
Go to this post