Skip to content

Commit

Permalink
Merge pull request #3627 from Avishka-Shamendra/apim-issue-1272
Browse files Browse the repository at this point in the history
Add ResponseHeaderSetFilter J2 mapping
  • Loading branch information
dushaniw authored Aug 3, 2023
2 parents 97f8da5 + c3f8481 commit 20d2581
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,23 @@
</init-param>
</filter>
-->
{% for entry in tomcat.custom_response_header_filters %}
<filter>
<filter-name>ResponseHeaderSetFilter#{{loop.index}}</filter-name>
<filter-class>org.wso2.carbon.tomcat.ext.filter.ResponseHeaderSetFilter</filter-class>
<init-param>
<param-name>headers</param-name>
<param-value>{{entry.headers}}</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>ResponseHeaderSetFilter#{{loop.index}}</filter-name>
<url-pattern>{{entry.filter_url_pattern}}</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
{% endfor %}

{% if custom_header_filter.enable is sameas true %}
<filter>
Expand Down

0 comments on commit 20d2581

Please sign in to comment.