yassinswag50 Posted May 29, 2021 Share Posted May 29, 2021 Hello everyone,this is my cors configuration i added to web.xml file:<filter> <filter-name>CorsFilter</filter-name> <filter-class>com.jaspersoft.jasperserver.api.security.csrf.CorsFilter</filter-class> <init-param> <param-name>cors.allowed.origins</param-name> <param-value>http://localhost:port</param-value> </init-param> <init-param> <param-name>cors.allowed.methods</param-name> <param-value>GET,POST</param-value> </init-param> <init-param> <param-name>cors.exposed.headers</param-name> <param-value> Access-Control-Allow-Origin,Access-Control-Allow-Credentials </param-value> </init-param> <init-param> <param-name>cors.support.credentials</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>cors.preflight.maxage</param-name> <param-value>1800</param-value> </init-param></filter><filter-mapping> <filter-name>CorsFilter</filter-name> <url-pattern>/*</url-pattern></filter-mapping>[/code]i resolved the cors issue but now i'm getting 403 error whe i try to navigate in jasperserver:can anyone help me with this thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now