Skip to content

Commit

Permalink
[#4] csrf disable - Http Method 요청 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jun108059 committed Oct 18, 2021
1 parent 6fd6faa commit 64300ed
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ protected void configure(HttpSecurity http) throws Exception {
// csrf h2 제외
http.httpBasic().disable()
.csrf()
.ignoringAntMatchers("/h2-console/**")
.and()
.ignoringAntMatchers("/h2-console/**").disable()
.headers().addHeaderWriter(new XFrameOptionsHeaderWriter(XFrameOptionsHeaderWriter.XFrameOptionsMode.SAMEORIGIN))
.and()
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
Expand Down

0 comments on commit 64300ed

Please sign in to comment.