質問編集履歴

2

誤字の修正

2024/03/23 05:55

投稿

houpuw
houpuw

スコア2

test CHANGED
File without changes
test CHANGED
@@ -26,7 +26,7 @@
26
26
  ```
27
27
  追記
28
28
  以下のエラーがコンソールに出力されていました。
29
- Invalid CSRF token found CSRFとあるのでトークンは渡せているが無効なトークンということでしょうか。
29
+ Invalid CSRF token foundとあるのでトークンは渡せているが無効なトークンということでしょうか。
30
30
  Postmanでのトークンの受け渡し方法などに不適な部分がありましたらご教示お願い致します。
31
31
  ```error
32
32
  o.s.security.web.FilterChainProxy Securing POST /post

1

コンソールに出力されたエラー内容を追加しました。

2024/03/23 05:54

投稿

houpuw
houpuw

スコア2

test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,18 @@
24
24
  "path": "/post"
25
25
  }
26
26
  ```
27
-
27
+ 追記
28
+ 以下のエラーがコンソールに出力されていました。
29
+ Invalid CSRF token found CSRFとあるのでトークンは渡せているが無効なトークンということでしょうか。
30
+ Postmanでのトークンの受け渡し方法などに不適な部分がありましたらご教示お願い致します。
31
+ ```error
32
+ o.s.security.web.FilterChainProxy Securing POST /post
33
+ o.s.security.web.csrf.CsrfFilter Invalid CSRF token found for http://localhost:8080/post
34
+ o.s.s.w.access.AccessDeniedHandlerImpl Responding with 403 status code
35
+ o.s.security.web.FilterChainProxy Securing POST /error
36
+ o.s.security.web.FilterChainProxy Secured POST /error
37
+ o.s.s.w.a.AnonymousAuthenticationFilter Set SecurityContextHolder to anonymous SecurityContext
38
+ ```
28
39
  ### 該当のソースコード
29
40
 
30
41
  ```SecurityConfig.java