MHussain Posted January 5, 2023 Share Posted January 5, 2023 (edited) I wanted to make square space api request, so when I am calling store pages api via fetch that time I am facing CORS policy issue. Can anyone please help me on this? Access to fetch at 'https://api.squarespace.com/1.0/commerce/store_pages' from origin has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. Edited January 5, 2023 by MHussain missing text olo 1 Link to comment
olo Posted January 20 Share Posted January 20 Same question as MHussain. I tried to fetch with no-cors mode and don't get an error but I also don't get the data. Can I change the CORS policy on my domain? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment