I am working to embed the third party API to get the JSON data on my wix website using WIX corvid. But can’t able to get the data. I have created the code in backend .jsw file and calling into the frontend page. But it gives the CORS origin related error (Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at … (Reason: CORS request did not succeed) ) and that saying unable to fetch. Please help me to sort out this problem. How can i solve this problem. That is very important for me to get that data on my wix website. Any help would be appreciated. Thank you
I can see that a similar issue is addressed in this thread: https://www.wix.com/corvid/forum/community-discussion/resolved-fetch-blocked-by-cors
In addition, please make sure to follow these guidelines when using third-party services with Fetch API: https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api
This article also contains possible explanations and solutions for your issue.
Still issue didnt fix. I tried every possible way. Not able to detect the issue. itried even with the backend code but no luck.