You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing apps with Go and HTMX, and I primarily use Safari as my main browser. Unfortunately, Safari intermittently refuses to load the HTMX script with the following error:
Refused to execute https://unpkg.com/[email protected] as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.
This issue does not always occur and it works perfectly fine in Chrome and Firefox.
I'm uncertain whether this is a bug in HTMX or an error on my part.
Steps to Reproduce:
Use Safari as the browser.
Include the HTMX script in the HTML file like this:
I wonder if it's the unpkg auto redirection that messes up here, could you try loading directly with the resolved URL (the one you eventually get when opening the link in your browser directly), aka
I wonder if it's the unpkg auto redirection that messes up here, could you try loading directly with the resolved URL (the one you eventually get when opening the link in your browser directly), aka
Description:
I'm developing apps with Go and HTMX, and I primarily use Safari as my main browser. Unfortunately, Safari intermittently refuses to load the HTMX script with the following error:
This issue does not always occur and it works perfectly fine in Chrome and Firefox.
I'm uncertain whether this is a bug in HTMX or an error on my part.
Steps to Reproduce:
Expected Behavior:
The HTMX script should load without issues, similar to how it functions in Chrome and Firefox.
Actual Behavior:
Safari intermittently refuses to execute the script, displaying the error message related to the "X-Content-Type-Options: nosniff" header.
Additional Information:
Please let me know if any additional information is needed. Thank you for your help in resolving this issue.
The text was updated successfully, but these errors were encountered: