-
-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.0.x] Remove deprecated contentSecurityPolicy
config + deprecated hibernate.dialect config
#525
Conversation
@Mergifyio backport 2.9.x |
✅ Backports have been created
|
@@ -5,10 +5,6 @@ pekko { | |||
logging-filter = "org.apache.pekko.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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null
is the default anyway now.
@@ -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"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed according a warning in the logs.
@@ -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'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is set in line 13 anyway.
See https://www.playframework.com/documentation/3.0.x/Migration27#play.filters.headers.contentSecurityPolicy-deprecated-for-CSPFilter