Guest User

Untitled

a guest
Jan 16th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. http.headers().frameOptions().sameOrigin();
  2.  
  3. auth:
  4. enabled: false
  5. serviceUrl: https://someURL/auth-service
  6. basicAuth: someEncryptedBasicAuth ANDDDDnnalsslasdkasmdlkadmlasd
  7. redirect: false
  8.  
  9. @Override
  10. protected void configure(HttpSecurity http) throws Exception {
  11. http.authorizeRequests().antMatchers("/").permitAll().and()
  12. .authorizeRequests().antMatchers("/some-service/h2/**").permitAll()
  13. http.csrf().disable();
  14. http.headers().frameOptions().disable();
  15. }
  16.  
  17. # H2
  18. spring:
  19. h2:
  20. console:
  21. enabled: true
  22. path: /h2
  23. # Datasource
  24. datasource:
  25. url: jdbc:h2:file:~/test
  26. username: sa
  27. password:
  28. driver-class-name: org.h2.Driver
Add Comment
Please, Sign In to add comment