Skip to content

Commit

Permalink
permissionsPolicy is deprecated (#28081)
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert authored Dec 4, 2024
1 parent 3d2ebc6 commit eb88652
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public class SecurityConfiguration {
.contentSecurityPolicy(csp -> csp.policyDirectives(jHipsterProperties.getSecurity().getContentSecurityPolicy()))
.frameOptions(FrameOptionsConfig::sameOrigin)
.referrerPolicy(referrer -> referrer.policy(ReferrerPolicyHeaderWriter.ReferrerPolicy.STRICT_ORIGIN_WHEN_CROSS_ORIGIN))
.permissionsPolicy(permissions ->
.permissionsPolicyHeader(permissions ->
permissions.policy("camera=(), fullscreen=(self), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=(), payment=(), sync-xhr=()")))
<%_ } _%>
.authorizeHttpRequests(authz ->
Expand Down

0 comments on commit eb88652

Please sign in to comment.