Right now, CSP headers are calculated and sent before the BeforePageDisplay hook. This means that if you add some module in the onBeforePageDisplay hook (which is very common) you cannot adjust the CSP header in the same hook. This makes things rather cumbersome. Maybe we should adjust the CSP header to happen after that hook.
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Allow adjusting CSP headers from BeforePageDisplay hook | mediawiki/core | master | +4 -3 |
Event Timeline
Comment Actions
Change 575981 had a related patch set uploaded (by Brian Wolff; owner: Brian Wolff):
[mediawiki/core@master] Allow adjusting CSP headers from BeforePageDisplay hook
Comment Actions
Change 575981 merged by jenkins-bot:
[mediawiki/core@master] Allow adjusting CSP headers from BeforePageDisplay hook