Spring Security unexpected behavior for REST endpoints authentication?

前端 未结 6 1572
暖寄归人
暖寄归人 2021-01-15 03:44

The scenario we are looking for is as follows:

  1. client connects with REST to a REST login url
  2. Spring microservice (using Spring Security) should return
6条回答
  •  [愿得一人]
    2021-01-15 03:56

    You can use headers().defaultsDisabled() and then chain that method to add the specific headers you want.

提交回复
热议问题