Last change
on this file since e6ff724 was e6ff724, checked in by Vzdra <vladko.zdravkovski@…>, 4 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
641 bytes
|
Rev | Line | |
---|
[e6ff724] | 1 | package it.finki.tinki;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.context.annotation.Configuration;
|
---|
| 4 | import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
---|
| 5 | import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
---|
| 6 |
|
---|
| 7 | @Configuration
|
---|
| 8 | public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
|
---|
| 9 |
|
---|
| 10 | @Override
|
---|
| 11 | protected void configure(HttpSecurity http) throws Exception {
|
---|
| 12 | http.authorizeRequests().antMatchers("/").permitAll()
|
---|
| 13 | .antMatchers("/h2").permitAll();
|
---|
| 14 |
|
---|
| 15 | http.csrf().disable();
|
---|
| 16 | http.headers().frameOptions().disable();
|
---|
| 17 | }
|
---|
| 18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.