I am experiencing an issue on Cordova iOS (testing with v12.1, but multiple users have reported the issue).
I’m using Three JS in my app and while loading a texture I get a 403 Forbidden only on iOS Cordova. On Android and web (chrome, safari, firefox tested) there are no issues. The image is located in my public folder, this is the exact error:
[Error] Failed to load resource: the server responded with a status of 403 (Forbidden) http://localhost:12536/images/pool-effects/particle.png
I believe under the hood three js is using an XMLHTTPRequest to fetch the image. As far as I understood the cordova local web server should be a ‘safe origin’ to request resources from right? If I load the png in an
<img /> in the DOM all is well and the image is loaded correctly.
What could cause this issue?