-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
First of all, thank you for the repo. Helped me a lot understand the stack.
When running the app, I got these following errors
Content-Security-Policy: The page’s settings blocked an inline style (style-src-elem) from being applied because it violates the following directive: “style-src 'nonce-53ab3f3a9adff2c873324fa5277158c8' 'sha256-pgn1TCGZX6O77zDvy0oTODMOxemn0oj0LeCnQTRj7Kg='”
The script from “http://localhost:3000/static/script/htmx.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
I fixed them by changing the type attribute of the script and link tag for htmx and tailwind's css to text/html , respectively. I'm assuming it's the Content-Security-Policy header that enforces the type. Not sure if it's the correct solution, but thought I should mention it.
EDIT: fixed it by removing TextHTMLMiddleware entirely. It's an odd one. Not 100% sure how to deal with this
Metadata
Metadata
Assignees
Labels
No labels