How do I send spring csrf token from Postman rest client?

前端 未结 6 2184
南方客
南方客 2020-11-28 07:08

I have csrf protection in spring framework. So in each request I send csrf token in header from ajax call, which is perfectly working.

&         


        
6条回答
  •  醉酒成梦
    2020-11-28 07:56

    I am able to send REST with csrf token by following the steps below:

    1. The CSRF token generated automatically by spring security when you logged in. It will be shown at the response header.

    2. The CSRF token can be used on subsequent request by setting X-CSRF-TOKEN with CSRF token on header.

提交回复
热议问题