- Issue created by @lucasrossi
- 🇧🇷Brazil lbernard07
This patch checks if the status code is 503, in case it's true, it will not apply the flags and source directives.
- last update
12 months ago 132 pass - last update
12 months ago Composer require failure - last update
12 months ago 132 pass - Status changed to RTBC
12 months ago 4:43pm 27 November 2023 - Status changed to Needs work
12 months ago 12:05pm 2 December 2023 - 🇨🇦Canada gapple
Since this sounds like an environment-specific issue (limited to a particular response code), I don't think it's something to be solved within CSP module. There's potential for configuring an alternate policy for circumstances like maintenance mode which could have a much shorter and more restrictive policy, but it would need to be configurable since other people's environments and needed policy will differ.
The patch provided in #2 would omit things from config like
'self'
, but still allows other modules to alter the policy, which could potentially block necessary assets.My suggestion would be to implement a custom module with an event subscriber to alter the policy when needed for your environment and the particular response code.
- Status changed to Closed: works as designed
6 months ago 9:45am 26 May 2024