From 3130a4e696191c5f2f12d5aee549cc0d88e8dbd5 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Tue, 26 Jan 2016 12:12:48 +0700 Subject: [PATCH] revert TV custom CSP headers --- app/controllers/Tv.scala | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/controllers/Tv.scala b/app/controllers/Tv.scala index edf903b9cf..e9f1f5c9bd 100644 --- a/app/controllers/Tv.scala +++ b/app/controllers/Tv.scala @@ -1,6 +1,6 @@ package controllers -import play.api.mvc._, Results._ +import play.api.mvc._ import play.twirl.api.Html import lila.api.Context @@ -67,12 +67,8 @@ object Tv extends LilaController { Env.tv.streamsOnAir.all flatMap { streams => 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 None => fuccess(Ok(html.tv.notStreaming(streamer, others))) + case Some(s) => fuccess(Ok(html.tv.stream(s, others))) } } }