Hi everyone. I've got a 1.0 client script on an ex...
# suitescript
k
Hi everyone. I've got a 1.0 client script on an external form for a custom record, which makes a jQuery.ajax call to an external suitelet. It was working fine, but recently started getting the following error:
Copy code
Access to XMLHttpRequest at '<https://forms.na1.netsuite.com> ... &command=getEvents' from origin 'https:// ... .<http://extforms.netsuite.com|extforms.netsuite.com>' 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.
where ... is just to shorten the URLs for here. The same error occurs in both production and sandbox with only the URL being different between them. Any ideas how to fix this?