AnsweredAssumed Answered

How do I access cross-domain resources in a local WAB app?

Question asked by vmking on Feb 13, 2020
Latest reply on Feb 13, 2020 by vmking

I have a WAB app that hasn't been deployed yet; it's just running locally. I'm writing a custom widget that needs to access data from an API. I'm getting an error of:


Access to fetch at '[API URL]' from origin 'https://[My Machine Name]:[Port]' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.


Any suggestions on how to fix this? Most of  the information I've found on this refers to deployed apps. I saw one suggestion to use an open-source proxy (e.g. but I don't think that will work, because the API is only accessible on my organization's network.