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
| Labels |
Added:
?
|
||
| Labels |
Added:
J4 Issue
|
||
Where is that expected behavior based on?
It is called "additional"
It is not called "replaced"
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?
As com_csp wont work without the plugin being enabled I expect them to work together not to compete with each other
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.
Maybe if you could point me to the documentation?
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.
It is called "additional"
it is not called "replaced"
Why it is called additional and why this might be misleading now is mention above already. :)
What is you opinion on the following proposals:
The mention Extended mode that would combine the two fields into one header where possible.
Remove the csp header form the additional headers section so it can only be set via com_csp and no overwrite is happening.
Keep both options but make sure there are documentation that mention the intended consequences.
Rename the option to Manual Http headers an clearly state in the description what is happening here.
What do you think about the proposals and do you have another suggestion to fix the issue?
Dont let you set CSP headers if you have used com_csp
Change the wording to Replace
Move all the plugin options to the component. Then you are only configuring headers in one place
Thanks for the suggestions.
| Status | New | ⇒ | Discussion |
| Status | Discussion | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-07-27 04:18:41 |
| Closed_By | ⇒ | zero-24 |
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
Other Http Headerswould be better now?In the early stages of com_csp I was thinking about an extra
Extendoption that would use the auto generated rules and merge them with static rules but this has been dropped because I have not found any use case where this would be necessary for that reason it is not implemented yet.But that
Extendoption is now back on my list as it seams to be useful for some use cases.The implementation will be reconsidered at the time I can do the next steps on the http headers.
Thanks.