Skip to content
Discussion options

You must be logged in to vote

Thanks Martin.

I tried locally and the problem is the same.

Finally I have found the problem. I found this error below on the page rendered on Azure SWA.

mermaidAPI.js:343 
        
       Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-CYb8Vm/DptihugMA4nZPfptyXKMLxMKZ18+sxTvbN9s='), or a nonce ('nonce-...') is required to enable inline execution.

This means I have to change something on the "content security policy" on the json settings file. I had this:
"content-security-policy": "object-src 'self' data; style-src 'self'"

I have added 'unsafe-inline' to the style-s…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@squidfunk
Comment options

Comment options

You must be logged in to vote
1 reply
@squidfunk
Comment options

Comment options

You must be logged in to vote
1 reply
@squidfunk
Comment options

Answer selected by squidfunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants