Skip to content

Commit

Permalink
Merge pull request #528 from playframework/mergify/bp/2.9.x/pr-525
Browse files Browse the repository at this point in the history
[2.9.x] [3.0.x] Remove deprecated `contentSecurityPolicy` config + deprecated hibernate.dialect config (backport #525) by @mkurz
  • Loading branch information
mergify[bot] authored Jan 23, 2024
2 parents 380b40a + 7ee9b63 commit 285e87e
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 24 deletions.
4 changes: 0 additions & 4 deletions play-java-chatroom-example/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ akka {
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
}

// https://www.playframework.com/documentation/latest/SecurityHeaders
// Disable the out of the box content security policy in SecurityHeadersFilter
play.filters.headers.contentSecurityPolicy = null

// https://www.playframework.com/documentation/latest/AllowedHostsFilter
play.filters.hosts.allowed = ["localhost:9000", "localhost:19001"]

Expand Down
1 change: 0 additions & 1 deletion play-java-jpa-example/conf/META-INF/persistence.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<non-jta-data-source>DefaultDS</non-jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
</properties>
</persistence-unit>
Expand Down
1 change: 0 additions & 1 deletion play-java-rest-api-example/conf/META-INF/persistence.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<non-jta-data-source>DefaultDS</non-jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
</properties>
</persistence-unit>
Expand Down
3 changes: 0 additions & 3 deletions play-java-starter-example/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,6 @@ play.filters {

# The X-Permitted-Cross-Domain-Policies header. If null, the header is not set.
#permittedCrossDomainPolicies = "master-only"

# The Content-Security-Policy header. If null, the header is not set.
#contentSecurityPolicy = "default-src 'self'"
}

## Allowed hosts filter configuration
Expand Down
4 changes: 0 additions & 4 deletions play-scala-chatroom-example/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ akka {
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
}

// https://www.playframework.com/documentation/latest/SecurityHeaders
// Disable the out of the box content security policy in SecurityHeadersFilter
play.filters.headers.contentSecurityPolicy = null

// https://www.playframework.com/documentation/latest/AllowedHostsFilter
play.filters.hosts.allowed = ["localhost:9000", "localhost:19001"]

Expand Down
3 changes: 0 additions & 3 deletions play-scala-log4j2-example/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,6 @@ play.filters {

# The X-Permitted-Cross-Domain-Policies header. If null, the header is not set.
#permittedCrossDomainPolicies = "master-only"

# The Content-Security-Policy header. If null, the header is not set.
#contentSecurityPolicy = "default-src 'self'"
}

## Allowed hosts filter configuration
Expand Down
3 changes: 0 additions & 3 deletions play-scala-starter-example/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,6 @@ play.filters {

# The X-Permitted-Cross-Domain-Policies header. If null, the header is not set.
#permittedCrossDomainPolicies = "master-only"

# The Content-Security-Policy header. If null, the header is not set.
#contentSecurityPolicy = "default-src 'self'"
}

## Allowed hosts filter configuration
Expand Down
1 change: 0 additions & 1 deletion play-scala-streaming-example/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Allow URLs from the same origin to be loaded by frames and scripts
play.filters.headers {
frameOptions = "SAMEORIGIN"
contentSecurityPolicy = "connect-src 'self'"
}

play.filters.enabled += play.filters.csp.CSPFilter
Expand Down
8 changes: 4 additions & 4 deletions play-scala-websocket-example/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ akka {
}
}

play.filters.enabled += play.filters.csp.CSPFilter

# https://www.playframework.com/documentation/latest/SecurityHeaders
# Connect to localhost:9000 for content security policy on websockets
play.filters.headers {
contentSecurityPolicy = "connect-src 'self' ws://localhost:9000"
play.filters.csp.directives {
connect-src = "'self' ws://localhost:9000"
default-src = "'self'"
}

# https://www.playframework.com/documentation/latest/AllowedHostsFilter
Expand Down

0 comments on commit 285e87e

Please sign in to comment.