I’m trying to access my BitBucket server plugin’s REST resource from a React UI using axios. The UI is running from a different localhost port via webpack-dev-server (in order to speed up development - no need to constantly atlas-package etc). However, the REST resource is inaccessible:
Access to XMLHttpRequest at ‘http://localhost:7990/bitbucket/rest/myplugin/1.0/config’ from origin ‘http://localhost:8080’ 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.
How can this be circumvented?