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

security: csp add an option for strict policy with no inline #1062

Merged
merged 2 commits into from
Jun 6, 2021

Conversation

monkeyiq
Copy link
Contributor

@monkeyiq monkeyiq commented Jun 6, 2021

This moves some inline styles to refer to css so that a CSP policy can be sent that forbids unsafe-inline from being used. I have tested (Firefox,Chrome) upload and download of normal and encrypted files, inviting guest etc and all seems to function as one would expect. I will likely do some more final testing in Edge and Safari to test for regressions before release.

The option can be disabled by setting use_strict_csp to false in the configuration if it causes regressions for specific sites.

@github-actions
Copy link

github-actions bot commented Jun 6, 2021

If there are selenium UI results for this code they will be at filesenderuici@9b902b4

@monkeyiq monkeyiq merged commit bdc66fc into filesender:development Jun 6, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant