CSP error when adding Tabi to existing site #258
Replies: 3 comments 7 replies
-
Hi! The default CSP directive is pretty restrictive, and it won't allow inline CSS styling like: <p style="color: red; background-color: blue;">This is a paragraph with inline CSS.</p> You can either load custom CSS or set a more liberal CSP directive. If we only allowed inline style from the default directive: allowed_domains = [
{ "directive": "font-src", "domains": ["'self'", "data:"] },
{ "directive": "img-src", "domains": ["'self'", "https://*", "data:"] },
{ "directive": "script-src", "domains": ["'self'"] },
{ "directive": "style-src", "domains": ["'self'", "'unsafe-inline'"] }, # Allow inline styles.
{ "directive": "frame-src", "domains": ["player.vimeo.com", "https://www.youtube-nocookie.com"] },
] |
Beta Was this translation helpful? Give feedback.
-
Yeah. That's what I figured. I added the Since I have code blocks on the article pages, those are the culprit for the inline CSS. Thanks anyway. |
Beta Was this translation helpful? Give feedback.
-
Follwing the installation instructions I just
Edited the No big deal. Maybe I have to check whatever I must have done differently to cause the issue. |
Beta Was this translation helpful? Give feedback.
-
Hi. I have installed Tabi theme on a already existing site. I'm getting the following error when loading the page:
I can see that the CSP
style-src
is being applied only on<meta property="og:url"...>
tag.Any advice on how to handle this?
TIA
Beta Was this translation helpful? Give feedback.
All reactions