-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.0] com_csp and http_headers plugin conflict with each other #25592
Comments
Where is that expected behavior based on? At least from me it is intended to be working exactly that way. That "additional" header is coming from the initial plugin and there was no com_csp support so that additional was referring to be additional to the suggested default headers presented in the plugin. Maybe it is not the correct word for that option anymore, maybe In the early stages of com_csp I was thinking about an extra But that The implementation will be reconsidered at the time I can do the next steps on the http headers. Thanks. |
It is called "additional" As com_csp wont work without the plugin being enabled I expect them to work together not to compete with each other Maybe if you could point me to the documentation? |
Technical they are only work together :D But I agree that mention option is conflicting as the plugin was in the initial version intended to work different.
I have started to document the http headers in the docs but not yet the details you mention here. The main reason is that there are still plans to rewrite bigger parts of the plugin code to work better with com_csp and the core.
Why it is called additional and why this might be misleading now is mention above already. :) What is you opinion on the following proposals: 1. ProposalThe mention 2. ProposalRemove the csp header form the additional headers section so it can only be set via com_csp and no overwrite is happening. 3. ProposalKeep both options but make sure there are documentation that mention the intended consequences. 4. ProposalRename the option to What do you think about the proposals and do you have another suggestion to fix the issue? |
|
Thanks for the suggestions. |
Please checkout: #25713 |
Steps to reproduce the issue
In com_csp go to the options and make the mode Detect

Check the response headers on the front end and you should see

Browse several pages on the front end and then go back to com_csp and refresh and you should see some entries

Publish those entries
Go back to the options and change the mode to Automatic

Now refresh the front end and check the response headers. You should see something like

Now go the http_headers plugin and create an additional csp header

Now refresh the front end and check the response headers. You should see something like

The expected behaviour was that the additional csp header added in the plugin would be added to the csp headers already set in com_csp
The actual behaviour is that the plugin overwrites the component settings
The text was updated successfully, but these errors were encountered: