Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(my)CSP and inline style #114

Open
surtarso opened this issue Jul 25, 2022 · 0 comments
Open

(my)CSP and inline style #114

surtarso opened this issue Jul 25, 2022 · 0 comments

Comments

@surtarso
Copy link

Hi there,
CSP doesn't really like the script tag in html's. I couldnt find the served html file on my disk to change it myself, so here I am =)

this part

<style>
html { height: 100%; }
body { min-height : 100%; display: flex; flex-direction:column; font-family: 'Garamond', 'Georgia', serif; text-align: center; color: #444; background: #FAFAFA; margin: 0; padding: 0; font-size: 1.1em; }
input { border: 1px solid #888; padding: 0.3em; color: #444; background: #FFF; font-size: 1.1em; }
input[placeholder] { width:80%; }
a { text-decoration: none; #2980b9; }
h1, h2 { font-weight: 200; margin-bottom: 2rem; }
h1 { font-size: 3em; }
.container { flex:1; min-height: 100%; margin-bottom: 1em; }
.footer { margin: 1em; }
.footer p { font-size: 0.8em; }
</style>

should be gone to a .css file and linked to the html with type= and rel= or it's ignored by CSP inline restrictions
I know its a background service, but sometimes I use it standalone too... and I like it pretty =)

So if you think this should be changed or want to point me in the right direction of the html folder/file so I can change just locally here, that'd be great!
thx for your hard work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant