jsf - Spring Security with PrimeFaces Dialog Framework -


i have web project uses spring security , primefaces.

i trying use primefaces dialog framework call xhtml file dialog .. problem when add line on web.xml:

<filter>     <filter-name>springsecurityfilterchain</filter-name>     <filter-class>org.springframework.web.filter.delegatingfilterproxy</filter-class> </filter> <filter-mapping>     <filter-name>springsecurityfilterchain</filter-name>     <url-pattern>/*</url-pattern> </filter-mapping> 

the dialog box doesn't appear , if remove line above , dialog box being displayed .. if remove lines above , loose spring security feature .. configuration missed?

yes, spring security blocking frame generated primefaces. can make work adding following directive spring security configuration

http // ... .headers().frameoptions().sameorigin();

source: http://docs.spring.io/spring-security/site/docs/current/reference/html/headers.html#headers-frame-options


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -