You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "sebbASF (via GitHub)" <gi...@apache.org> on 2025/10/25 16:26:24 UTC
[I] The Content-Security-Policy header must not be overridden [apisix-website]
sebbASF opened a new issue, #1967:
URL: https://github.com/apache/apisix-website/issues/1967
https://github.com/apache/apisix-website/blob/0435d6f0eb5b8c674e0d5acb36eb705f92a7c425/.htaccess#L21
The Content-Security-Policy header must not be overridden.
There is now a standard way to add local exceptions to the CSP:
https://infra.apache.org/tools/csp.html
Please update the .htaccess file accordingly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] The Content-Security-Policy header must not be overridden [apisix-website]
Posted by "SkyeYoung (via GitHub)" <gi...@apache.org>.
SkyeYoung commented on issue #1967:
URL: https://github.com/apache/apisix-website/issues/1967#issuecomment-3459998631
@juzhiyuan @guoqqqi Could you please confirm the original requirements for these configurations? And help remove or adjust the content
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] The Content-Security-Policy header must not be overridden [apisix-website]
Posted by "sebbASF (via GitHub)" <gi...@apache.org>.
sebbASF commented on issue #1967:
URL: https://github.com/apache/apisix-website/issues/1967#issuecomment-3467419858
It would also be possible to start from a copy of the source in a branch named preview/csptest.
This would require changes to the deploy.yaml file to build from preview/csptest and output to preview/csptest-staging.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] The Content-Security-Policy header must not be overridden [apisix-website]
Posted by "sebbASF (via GitHub)" <gi...@apache.org>.
sebbASF commented on issue #1967:
URL: https://github.com/apache/apisix-website/issues/1967#issuecomment-3458850963
Please note that the policy says that any exceptions must have been approved, and a reference to the approval must be commented in the .htaccess file
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] The Content-Security-Policy header must not be overridden [apisix-website]
Posted by "juzhiyuan (via GitHub)" <gi...@apache.org>.
juzhiyuan commented on issue #1967:
URL: https://github.com/apache/apisix-website/issues/1967#issuecomment-3465756953
I don't have any idea what should I do ....
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] The Content-Security-Policy header must not be overridden [apisix-website]
Posted by "sebbASF (via GitHub)" <gi...@apache.org>.
sebbASF commented on issue #1967:
URL: https://github.com/apache/apisix-website/issues/1967#issuecomment-3467335811
See PR #1969
Once this is in place, it should be possible to experiment with changes to the CSP as follows:
Create a copy of the asf-site branch with the name preview/csptest-staging. (There is no need to rebuild the site from source). Before publishing the preview branch, remove the .htaccess file from it. This will show which resources would be affected.
The website should appear as https://apisix-csptest.staged.apache.org/ a short while after publication.
Various pages can then be tested to see if they are affected.
There will probably need to be several iterations to determine which 3rd party resources can be allowed via exceptions to the policy, and which resources must be copied locally (e.g. fonts should be locally sourced).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] The Content-Security-Policy header must not be overridden [apisix-website]
Posted by "sebbASF (via GitHub)" <gi...@apache.org>.
sebbASF commented on issue #1967:
URL: https://github.com/apache/apisix-website/issues/1967#issuecomment-3467211003
I've just done a GH search for www.google.com and app.netlify.com in this repo, and the only references were in the .htaccess file; it seems that particular override is not needed.
However, the current setting overrides the rest of the required CSP, so merely dropping the file would likely cause some pages to fail.
I suggest creating a preview website where changes can be tested. I hope to raise PRs for this later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org