![]() |
Copyright © Cloud Software Group, Inc. All Rights Reserved |
To add a CORS filter, set the following properties either in ASG_HOME/bin/asg_core.cdd file or in the ASG_HOME/bin/asg_engine.tra file:This section explains how to add the CORS filter properties in the asg_core.cdd file using a text editor. Do the following:
1.
• cors identifies an instance of the filter. It is a non-empty string which should contain no dot and no equals sign.
• org.apache.catalina.filters.CorsFilter is the name of the class that implements the filter. For CORS, this must be org.apache.catalina.filters.CorsFilter
• arbitraryUniqueName is a non-empty string chosen arbitrarily by the user.. This is used to make the name of the property unique.
− arbitraryUniqueName cannot contain the equal sign.
− arbitraryUniqueName cannot be shared by multiple properties that have the same be.http.filter.filterName.urlpattern. prefix.
• urlPattern is the URL pattern that defines where the CORS filter is applied.
•
• filterName cannot contain a dot character "."
• filterName is used both by TIBCO API Exchange Gateway and by Tomcat server to find all the declarations that apply to the same filter.
•
• be.http.filter.cors.urlpattern.2
• be.http.filter.cors.urlpattern.3
be.http.filter.cors.urlpattern.2=/some/Url*be.http.filter.cors.urlpattern.3=/anotherUrlTo add filter parameters, set the properties by following the structure: be.http.filter.cors.param.paraName=paramValue
• cors identifies an instance of the filter.
• paraName is the parameter name. This should not contain no equals sign.
• paramValue is the parameter value.
• Refer to http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#CORS_Filter for a list of available parameter names and values.
![]() |
Copyright © Cloud Software Group, Inc. All Rights Reserved |