Skip to content

Commit

Permalink
Update WebSecurityConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilMM89 authored Sep 26, 2023
1 parent ab3a95e commit e48dc92
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/main/java/ca/bc/gov/iamp/bcparis/WebSecurityConfig.java
Original file line number Diff line number Diff line change
@@ -1,19 +1 @@
package ca.bc.gov.iamp.bcparis;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {

@Override
protected void configure(HttpSecurity http) throws Exception {
http
.headers()
.httpStrictTransportSecurity()
.includeSubDomains(true)
.maxAgeInSeconds(31536000);
}
}

0 comments on commit e48dc92

Please sign in to comment.