put reminder that twitch must come last in csp

pull/8003/head
Niklas Fiekas 2021-01-25 14:18:15 +01:00
parent 07064a7041
commit 0dc4e037f5
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ object show {
image = s.streamer.picturePath.map(p => dbImageUrl(p.value))
)
.some,
csp = defaultCsp.withTwitch.some
csp = defaultCsp.finalizeWithTwitch.some
)(
main(cls := "page-menu streamer-show")(
st.aside(cls := "page-menu__menu")(

View File

@ -26,7 +26,7 @@ case class ContentSecurityPolicy(
frameSrc = "https://*.stripe.com" :: frameSrc
)
def withTwitch =
def finalizeWithTwitch =
copy(
defaultSrc = Nil,
connectSrc = "https://www.twitch.tv" :: "https://www-cdn.jtvnw.net" :: connectSrc,