revert TV custom CSP headers
This commit is contained in:
parent
9b5904b88f
commit
3130a4e696
|
@ -1,6 +1,6 @@
|
|||
package controllers
|
||||
|
||||
import play.api.mvc._, Results._
|
||||
import play.api.mvc._
|
||||
import play.twirl.api.Html
|
||||
|
||||
import lila.api.Context
|
||||
|
@ -68,11 +68,7 @@ object Tv extends LilaController {
|
|||
val others = streams.filter(_.id != id)
|
||||
streams find (_.id == id) match {
|
||||
case None => fuccess(Ok(html.tv.notStreaming(streamer, others)))
|
||||
case Some(s) => fuccess {
|
||||
Ok(html.tv.stream(s, others)) withHeaders (
|
||||
"Content-Security-Policy" -> """connect-src http://*.lichess.org ws://*.lichess.org:* http://lichess1.org http://www.twitch.tv http://www-cdn.jtvnw.net http://*.googleapis.com"""
|
||||
)
|
||||
}
|
||||
case Some(s) => fuccess(Ok(html.tv.stream(s, others)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue