Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http.headers().frameOptions().sameOrigin();
- auth:
- enabled: false
- serviceUrl: https://someURL/auth-service
- basicAuth: someEncryptedBasicAuth ANDDDDnnalsslasdkasmdlkadmlasd
- redirect: false
- @Override
- protected void configure(HttpSecurity http) throws Exception {
- http.authorizeRequests().antMatchers("/").permitAll().and()
- .authorizeRequests().antMatchers("/some-service/h2/**").permitAll()
- http.csrf().disable();
- http.headers().frameOptions().disable();
- }
- # H2
- spring:
- h2:
- console:
- enabled: true
- path: /h2
- # Datasource
- datasource:
- url: jdbc:h2:file:~/test
- username: sa
- password:
- driver-class-name: org.h2.Driver
Add Comment
Please, Sign In to add comment