We have an angularJs app in CF pages and there’s 2 domain for staging and for production.
We use 1 of the preview branches for our live staging (staging branch) and production for live our production site. We are not using Custom Domain since some of our assets is not served in CF pages.
We use CF worker to load all of our assets (angularJs app build in CF pages and some image assets in Cloudfront).
We have an issue regarding script tag (our js bundle) load/call our baseUrl inside the script and it is throwing error due to mime-type is incorrect (baseUrl is text/html).
This is the message that thrown from browser console
Refused to execute script from ‘https://staging.go.tallyfy.com’ because its MIME type (‘application/json’) is not executable, and strict MIME type checking is enabled.
Not sure why it’s call the base-url (there’s no issue like this before).
Is this issue related to the worker (redirect response issue) or from our internal script?