diff options
author | Pacien TRAN-GIRARD | 2015-02-05 17:42:38 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-02-05 17:42:38 +0100 |
commit | c30d0b96c3e2958126c7eceab82f7b8aafabab54 (patch) | |
tree | 98d7fc3295d613cda54ec54426932f45c34ecbc8 | |
parent | eb4676973b201e375f6fe144e93977ca39b5fd09 (diff) | |
download | minibay-c30d0b96c3e2958126c7eceab82f7b8aafabab54.tar.gz |
Add security filters
-rw-r--r-- | app/Global.scala | 8 | ||||
-rw-r--r-- | build.sbt | 1 |
2 files changed, 9 insertions, 0 deletions
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 @@ | |||
1 | import play.api._ | ||
2 | import play.api.mvc._ | ||
3 | import play.filters.csrf.CSRFFilter | ||
4 | import play.filters.headers.SecurityHeadersFilter | ||
5 | |||
6 | object Global extends WithFilters(SecurityHeadersFilter(), CSRFFilter()) with GlobalSettings { | ||
7 | |||
8 | } | ||
@@ -12,6 +12,7 @@ lazy val root = (project in file(".")) | |||
12 | jdbc, | 12 | jdbc, |
13 | cache, | 13 | cache, |
14 | ws, | 14 | ws, |
15 | filters, | ||
15 | "com.typesafe.slick" %% "slick" % "2.1.0", | 16 | "com.typesafe.slick" %% "slick" % "2.1.0", |
16 | "com.typesafe.slick" %% "slick-extensions" % "2.1.0", | 17 | "com.typesafe.slick" %% "slick-extensions" % "2.1.0", |
17 | "postgresql" % "postgresql" % "9.1-901.jdbc4", | 18 | "postgresql" % "postgresql" % "9.1-901.jdbc4", |