You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/06/05 05:39:00 UTC
[jira] [Work logged] (WW-5400) CSP interceptor only allows very limited configuration
[ https://issues.apache.org/jira/browse/WW-5400?focusedWorklogId=922075&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922075 ]
ASF GitHub Bot logged work on WW-5400:
--------------------------------------
Author: ASF GitHub Bot
Created on: 05/Jun/24 05:38
Start Date: 05/Jun/24 05:38
Worklog Time Spent: 10m
Work Description: lukaszlenart opened a new pull request, #956:
URL: https://github.com/apache/struts/pull/956
Small refactoring of how `CspSettings` class is created plus additional tests. See #913 for more details.
Closes [WW-5400](https://issues.apache.org/jira/browse/WW-5400)
Issue Time Tracking
-------------------
Worklog Id: (was: 922075)
Time Spent: 1h 40m (was: 1.5h)
> CSP interceptor only allows very limited configuration
> ------------------------------------------------------
>
> Key: WW-5400
> URL: https://issues.apache.org/jira/browse/WW-5400
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Interceptors
> Affects Versions: 6.3.0
> Reporter: Erica Kane
> Priority: Major
> Fix For: 6.5.0
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> I have been trying to implement CSP on our website. The CSP interceptor provides an elegant solution with the <s:script> and <s:link> tags. However, I want to set my own base-uri. And perhaps make some other changes to the CSP headers.
> But these values are not accessible. Only the report-only and report-uri can be changed. Even if one is willing to work at the Action level and implement a new interface for all of them, I can't change the base-uri. I've seen people on Stack Overflow disable it for this reason. I want to use it, but could someone please explain how to set the base-uri globally? If not, I will likely have to make my own.
> P.S. I will update the documentation page. Nowhere in the description of the interceptor does it mention the script and link tags, and without those, it is useless!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)