Skip to content

How to enable CORS Filter in OpenAM? #575

Answered by maximthomas
yashpatil1998 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, you need to uncomment the following lines in WEB-INF/web.xml file in your OpenAM deployment and configure CORS filter parameters according to your needs

<!-- To configure CORS Support, please see the documentation and use the following lines as a template.
<filter>
<filter-name>CORSFilter</filter-name>
<filter-class>org.forgerock.openam.cors.CORSFilter</filter-class>
<init-param>
<description>
Accepted Methods (Required):
A comma separated list of HTTP methods for which to accept CORS requests.
</description>
<param-name>methods</param-…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by maximthomas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants