Making CORS POST Request

MACRORY
Excursionist
30 2 4

Hi Guys,

 

We just built our own Wishlist App on a separate server. While I tried to make a POST request to our API server, the following error came up:

"has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

Is there any solution other than setting up app-proxy. Because I am not familiar with how to build a Shopify App at all. I am not sure if it is because of Shopify or it is because of any setting from Cloudflare side.

 

If app proxy is the only solution, is there any example App serve this kind of needs (just for proxying the requests).

 

Thanks in advanced.

0 Likes