Skip to content
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

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

@mkurz
Copy link
Member Author

mkurz commented Jan 23, 2024

@Mergifyio backport 2.9.x

Copy link
Contributor

mergify bot commented Jan 23, 2024

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
Copy link
Member Author

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"/>
Copy link
Member Author

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'"
Copy link
Member Author

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.

@mkurz mkurz merged commit 5cb3a26 into playframework:3.0.x Jan 23, 2024
12 checks passed
@mkurz mkurz deleted the rm_deprecations branch January 23, 2024 10:56
mergify bot added a commit that referenced this pull request Jan 23, 2024
[2.9.x] [3.0.x] Remove deprecated `contentSecurityPolicy` config + deprecated hibernate.dialect config (backport #525) by @mkurz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant