put reminder that twitch must come last in csp
parent
07064a7041
commit
0dc4e037f5
|
@ -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")(
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue