CORS

I am using axios to upload my image to this service. I get some error about CORS, but when I use Postman, everything is ok. Please help me. Thanks all!!!!
3 Replies
omar4289
omar428915mo ago
Hello, cors are security policies enforced by the browsers. They do not apply in backend application, or postman are not affected. If you want to allow browsers to issue requests to your API endpoints, you must return your website host in the "Access-Control-Allow-Origin" header
hieupham
hieuphamOP15mo ago
i know that, but how can i pass CORS when using CloudFlare API on the browser
Cyb3r-Jak3
Cyb3r-Jak315mo ago
You can’t. The Cloudflare API intentionally doesn’t have CORS headers. You need to run a proxy that adds CORS headers.

Did you find this page helpful?