From c30d0b96c3e2958126c7eceab82f7b8aafabab54 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Thu, 5 Feb 2015 17:42:38 +0100 Subject: Add security filters --- app/Global.scala | 8 ++++++++ build.sbt | 1 + 2 files changed, 9 insertions(+) create mode 100644 app/Global.scala diff --git a/app/Global.scala b/app/Global.scala new file mode 100644 index 0000000..2723d67 --- /dev/null +++ b/app/Global.scala @@ -0,0 +1,8 @@ +import play.api._ +import play.api.mvc._ +import play.filters.csrf.CSRFFilter +import play.filters.headers.SecurityHeadersFilter + +object Global extends WithFilters(SecurityHeadersFilter(), CSRFFilter()) with GlobalSettings { + +} diff --git a/build.sbt b/build.sbt index 6fda37f..94ad485 100644 --- a/build.sbt +++ b/build.sbt @@ -12,6 +12,7 @@ lazy val root = (project in file(".")) jdbc, cache, ws, + filters, "com.typesafe.slick" %% "slick" % "2.1.0", "com.typesafe.slick" %% "slick-extensions" % "2.1.0", "postgresql" % "postgresql" % "9.1-901.jdbc4", -- cgit v1.2.3