We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring Security does not use the ServerWebExchangeFirewall Bean when exposed.
ServerWebExchangeFirewall
We should fix this, but in the meantime users can leverage a BeanPostProcessor approach.
BeanPostProcessor
@Bean BeanPostProcessor beanPostProcessor() { return new BeanPostProcessor() { @Override public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException { if (bean instanceof WebFilterChainProxy) { WebFilterChainProxy springSecurity = (WebFilterChainProxy) bean; springSecurity.setFirewall(ServerWebExchangeFirewall.INSECURE_NOOP); } return bean; } }; }
Related #15989 #15975
The text was updated successfully, but these errors were encountered:
Support ServerWebExchangeFirewall @bean
e48d6b0
Closes gh-15974
rwinch
No branches or pull requests
Spring Security does not use the
ServerWebExchangeFirewall
Bean when exposed.We should fix this, but in the meantime users can leverage a
BeanPostProcessor
approach.Related #15989 #15975
The text was updated successfully, but these errors were encountered: