-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply no-op CSP filter to extra webapps
- Loading branch information
1 parent
b88c957
commit 7a37c7e
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
server/bootstrap/src/org/labkey/filters/ContentSecurityPolicyFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.labkey.filters; | ||
|
||
import javax.servlet.Filter; | ||
import javax.servlet.FilterChain; | ||
import javax.servlet.FilterConfig; | ||
import javax.servlet.ServletException; | ||
import javax.servlet.ServletRequest; | ||
import javax.servlet.ServletResponse; | ||
|
||
/** | ||
* A no-op CSP filter that gets applied (for now) to extra webapps | ||
*/ | ||
public class ContentSecurityPolicyFilter implements Filter | ||
{ | ||
@Override | ||
public void init(FilterConfig filterConfig) throws ServletException | ||
{ | ||
} | ||
|
||
@Override | ||
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) | ||
{ | ||
} | ||
} |