Skip to content

Commit

Permalink
Merge pull request #4127 from guardian/CSP/frame-src/add-youtube
Browse files Browse the repository at this point in the history
  • Loading branch information
twrichards authored Aug 1, 2023
2 parents 8323361 + b1db23b commit 8992092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kahuna/app/KahunaComponents.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ object KahunaSecurityConfig {

val gaHost = "www.google-analytics.com"

val frameSources = s"frame-src ${config.services.authBaseUri} ${config.services.kahunaBaseUri} https://accounts.google.com ${config.scriptsToLoad.map(_.host).mkString(" ")}"
val frameSources = s"frame-src ${config.services.authBaseUri} ${config.services.kahunaBaseUri} https://accounts.google.com https://www.youtube.com ${config.scriptsToLoad.map(_.host).mkString(" ")}"
val frameAncestors = s"frame-ancestors ${config.frameAncestors.mkString(" ")}"
val connectSources = s"connect-src 'self' ${(services :+ config.imageOrigin).mkString(" ")} $gaHost ${config.connectSources.mkString(" ")}"

Expand Down

0 comments on commit 8992092

Please sign in to comment.