Skip to content

Commit

Permalink
Fix issue & bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ewoutvans committed Jul 15, 2018
1 parent 4ded64a commit 3ed8761
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions app/security/NonceFilter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ class NonceFilter @Inject() (implicit val mat: Materializer) extends Filter {
val nonce = generateNonce
next(request.addAttr(NonceFilter.NonceKey, nonce)).map { result =>
if(result.header.headers.contains("Content-Security-Policy")) {
result.withHeaders("Content-Security-Policy" -> result.header.headers("Content-Security-Policy")
.replace("%NONCE-SOURCE%", s"nonce-$nonce"))
result.withHeaders("Content-Security-Policy" -> result.header.headers("Content-Security-Policy").replace("%NONCE-SOURCE%", s"nonce-$nonce"))
} else {
result
}

result
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name := "ore"
version := "1.6.0"
version := "1.6.1"

lazy val `ore` = (project in file(".")).enablePlugins(PlayScala)

Expand Down

0 comments on commit 3ed8761

Please sign in to comment.