Skip to content

More CSP fixes for EA - #3184

Merged
JacobCoffee merged 1 commit into
mainfrom
csp-ethicalads
Oct 9, 2026
Merged

JacobCoffee merged 1 commit into
mainfrom
csp-ethicalads

Conversation

@JacobCoffee

Copy link
Copy Markdown
Member

allow EthicalAds JSONP, load EthicalAds only on /psf/sponsors/

EthicalAds requests ad decisions as JSONP <script> tags from
server.ethicalads.io, which script-src did not allow
(PYDOTORG-PROD-1Q6). Under an enforced policy the sponsor logos on
/psf/sponsors/ would stop rendering.

The client was also loaded on every page, while the only data-ea-*
placements are rendered by list_sponsors("sponsors") on /psf/sponsors/.
Everywhere else it threw "No ad placements found". Move the script
into that page's head block, keeping the disable_tracking guard.
Copilot AI balanced review requested due to automatic review settings October 9, 2026 15:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T15:31:40.535101Z c755e69 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@JacobCoffee
JacobCoffee enabled auto-merge October 9, 2026 15:30
@JacobCoffee
JacobCoffee added this pull request to the merge queue Oct 9, 2026
Merged via the queue into main with commit 0b5e5ed Oct 9, 2026
12 checks passed
@JacobCoffee
JacobCoffee deleted the csp-ethicalads branch October 9, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants