-
Suggestion
-
Resolution: Fixed
-
None
It would be great to be able to load the `all.js` library using the Fetch API.
That would allow us to mock the request on our test and CI environments with far more ease than the current way (at least for static add-ons).
Since the library is already 100% public, I see no downsides on allowing CORS for this resource alone, but it would allow us to do the following.
fetch(scriptUrl).then((response) => { let script = document.createElement('script') script.type = 'text/javascript' script.text = response.body document.getElementsByTagName('head')[0].appendChild(script) })
Which allows for a very simple way of mocking the library request on test environments.
- is related to
-
JRACLOUD-30371 Allow cross-domain requests for CORS
- Closed
-
JRACLOUD-59724 Jira Allows Cross Origin Resource Sharing Request or not??
- Closed