Skip to content

[3.0.x] Remove deprecated contentSecurityPolicy config + deprecated hibernate.dialect config#525

Merged
mkurz merged 2 commits intoplayframework:3.0.xfrom
mkurz:rm_deprecations
Jan 23, 2024
Merged

[3.0.x] Remove deprecated contentSecurityPolicy config + deprecated hibernate.dialect config#525
mkurz merged 2 commits intoplayframework:3.0.xfrom
mkurz:rm_deprecations

Conversation

@mkurz
Copy link
Copy Markdown
Member

@mkurz mkurz commented Jan 23, 2024

@mkurz
Copy link
Copy Markdown
Member Author

mkurz commented Jan 23, 2024

@Mergifyio backport 2.9.x

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Jan 23, 2024

backport 2.9.x

✅ Backports have been created

Details


// 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
Copy Markdown
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.

<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
Copy Markdown
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.

# Allow URLs from the same origin to be loaded by frames and scripts
play.filters.headers {
frameOptions = "SAMEORIGIN"
contentSecurityPolicy = "connect-src 'self'"
Copy link
Copy Markdown
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
@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