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
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
i know that, but how can i pass CORS when using CloudFlare API on the browser
You can’t. The Cloudflare API intentionally doesn’t have CORS headers. You need to run a proxy that adds CORS headers.