Certain CORS (Cross-Origin Resource Sharing) requests are restricted when originating from a browser. Usually, GET requests and certain POST requests can be made from your site’s Public , Page , or Site code. All other requests need to be made from your site’s Backend code. Invalid requests will cause an error that you can see using your browser’s developer tools . If you are experiencing an issue with a fetch call due to a CORS restriction, move the call to the backend as described below.
https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-myapi-and-myapiclient