Standalone Spring OAuth2 JWT Authorization Server + CORS

前端 未结 6 1322
长发绾君心
长发绾君心 2020-11-28 04:01

So I have the following Authorization Server condensed from this example from Dave Syer

@SpringBootApplication
publi         


        
6条回答
  •  Happy的楠姐
    2020-11-28 04:28

    well, you're right! that's a solution, and it worked also for me (I had the same issue)

    But let me sussgest to use a smarter CORS Filter implementation for Java: http://software.dzhuvinov.com/cors-filter.html

    This is very complete solution for Java applications.

    Actually, you can see here how your point is resolved.

提交回复
热议问题