Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/add google ad domains #5052

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/common/enums/csp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ const SCRIPT_SRC = [
'cpt.geniee.jp',
'securepubads.g.doubleclick.net',
'yads.c.yimg.jp',

// Google Ads
'*.adtrafficquality.google',
'*.googlesyndication.com',
]

const STYLE_SRC = [
Expand Down Expand Up @@ -95,6 +99,10 @@ const IMG_SRC = [

// Billboard
process.env.NEXT_PUBLIC_BILLBOARD_IMAGE_URL,

// Google Ads
'*.adtrafficquality.google',
'*.googlesyndication.com',
]

const MEDIA_SRC = IMG_SRC
Expand Down Expand Up @@ -154,6 +162,11 @@ const CONNECT_SRC = [
'cpt.geniee.jp',
'securepubads.g.doubleclick.net',
'yads.c.yimg.jp',

// Google Ads
'*.google.com',
'*.adtrafficquality.google',
'*.googlesyndication.com',
]

const FRAME_SRC = [
Expand Down Expand Up @@ -188,6 +201,12 @@ const FRAME_SRC = [
'cpt.geniee.jp',
'securepubads.g.doubleclick.net',
'yads.c.yimg.jp',
'safeframe.googlesyndication.com',
'pagead2.googlesyndication.com',

// Google Ads
'*.googlesyndication.com',
'*.adtrafficquality.google',
]

export const CSP_POLICY = Object.entries({
Expand Down
Loading