Skip to content
Permalink
Browse files

security none for /resources - debug cache headers ...

  • Loading branch information...
vbonamy committed Apr 9, 2019
1 parent 1fb801d commit c31b18aaa44496af2d08519ae6adea1522c6eeac
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/resources/META-INF/spring/applicationContext-security.xml
@@ -20,7 +20,11 @@
-->
<beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">

<!-- HTTP security configurations -->

<http security="none" pattern="/resources/**" />

<http auto-config="true" use-expressions="true">
<form-login login-page="/login"/>
<logout/>
@@ -29,7 +33,6 @@
<intercept-url access="isAuthenticated()" pattern="/"/>
<intercept-url access="hasRole('ROLE_ADMIN') or hasRole('ROLE_MANAGER')" pattern="/admin/**"/>
<intercept-url access="hasRole('ROLE_MEMBRE') or hasRole('ROLE_ADMIN') or hasRole('ROLE_MANAGER')" pattern="/membre/**"/>
<intercept-url access="permitAll" pattern="/resources/**"/>
<intercept-url access="permitAll" pattern="/login"/>
<intercept-url access="permitAll" pattern="/forgotpassword/**"/>
<intercept-url access="permitAll" pattern="/signup"/>
@@ -44,6 +47,7 @@
<custom-filter ref="checkProfilFilter" after="SWITCH_USER_FILTER"/>
</http>


<!-- Configure Authentication mechanism -->
<beans:bean class="fr.univrouen.poste.provider.DatabaseAuthenticationProvider" id="databaseAuthenticationProvider"/>

0 comments on commit c31b18a

Please sign in to comment.
You can’t perform that action at this time.