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

Add Content-Security-Policy headers #80

Open
samuelecavalleri opened this issue Aug 21, 2023 · 4 comments
Open

Add Content-Security-Policy headers #80

samuelecavalleri opened this issue Aug 21, 2023 · 4 comments
Assignees
Milestone

Comments

@samuelecavalleri
Copy link
Contributor

Starting from the branch security-headers:

Figure out why the current Content-Security-Policy header prevents all of the assets from being loaded.

@pascalwittler
Copy link

I think one reason for the problem may be the nested but unescaped single quotes around 'self' in https://github.com/passwordcockpit/passwordcockpit/blob/security-headers/docker/php/apache/Dockerfile#L154.

@heydenb
Copy link

heydenb commented Mar 30, 2024

Could it be that the latest version is having issues with the CSP. I am running the container via docker-compose locally and the webapp gives an empty page. All js files are blocked by the CSP header.

@heydenb
Copy link

heydenb commented Mar 30, 2024

Could it be that the latest version is having issues with the CSP. I am running the container via docker-compose locally and the webapp gives an empty page. All js files are blocked by the CSP header.

Nevermind, I was using 1.3.4 which had the issue. That's still the version which is refered to in the sample docker-compose.yml in github.

@pascalwittler
Copy link

pascalwittler commented Mar 30, 2024

Could it be that the latest version is having issues with the CSP. I am running the container via docker-compose locally and the webapp gives an empty page. All js files are blocked by the CSP header.

See my comment + pull request above

@bu3tt1 bu3tt1 added this to the 1.4.0 milestone Apr 3, 2024
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

5 participants