<http entry-point-ref="restAuthenticationEntryPoint"
create-session="stateless">
<!--下方配置需要控制的url路径 跳过options方法校验就可以-->
<intercept-url pattern="/api/v1/**" access="permitAll" method="OPTIONS" />
<intercept-url pattern="/api/v1/**" access="authenticated" />
<intercept-url pattern="/**" access="permitAll" />
<headers>
<frame-options policy="SAMEORIGIN" />
</headers>
<csrf disabled="true" />
<custom-filter position="PRE_AUTH_FILTER" ref="jwtAuthenticationFilter" />
</http>
2765

被折叠的 条评论
为什么被折叠?



