|
65 | 65 | </filter-mapping> |
66 | 66 |
|
67 | 67 |
|
| 68 | + <filter> |
| 69 | + <filter-name>CorsFilter</filter-name> |
| 70 | + <filter-class>io.antmedia.filter.CorsHeaderFilter</filter-class> |
| 71 | + <init-param> |
| 72 | + <param-name>cors.allowed.origins</param-name> |
| 73 | + <param-value>*</param-value> |
| 74 | + </init-param> |
| 75 | + <init-param> |
| 76 | + <param-name>cors.allowed.methods</param-name> |
| 77 | + <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value> |
| 78 | + </init-param> |
| 79 | + |
| 80 | + <!-- cors.allowed.origins -> * and credentials are not supported at the same time. |
| 81 | + If you set to cors.allowed.origins to specific domains and support credentials open the below lines |
| 82 | + <init-param> |
| 83 | + <param-name>cors.support.credentials</param-name> |
| 84 | + <param-value>true</param-value> |
| 85 | + </init-param> |
| 86 | + --> |
| 87 | + <init-param> |
| 88 | + <param-name>cors.allowed.headers</param-name> |
| 89 | + <param-value>Accept, Origin, X-Requested-With, Access-Control-Request-Headers, Content-Type, Access-Control-Request-Method, Authorization</param-value> |
| 90 | + </init-param> |
| 91 | + <async-supported>true</async-supported> |
| 92 | + </filter> |
| 93 | + <filter-mapping> |
| 94 | + <filter-name>CorsFilter</filter-name> |
| 95 | + <url-pattern>/*</url-pattern> |
| 96 | + </filter-mapping> |
68 | 97 |
|
69 | 98 | <filter> |
70 | 99 | <filter-name>HttpForwardFilter</filter-name> |
|
115 | 144 | <url-pattern>/streams/*</url-pattern> |
116 | 145 | </filter-mapping> |
117 | 146 |
|
118 | | - <filter> |
119 | | - <filter-name>CorsFilter</filter-name> |
120 | | - <filter-class>io.antmedia.filter.CorsHeaderFilter</filter-class> |
121 | | - <init-param> |
122 | | - <param-name>cors.allowed.origins</param-name> |
123 | | - <param-value>*</param-value> |
124 | | - </init-param> |
125 | | - <init-param> |
126 | | - <param-name>cors.allowed.methods</param-name> |
127 | | - <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value> |
128 | | - </init-param> |
129 | 147 |
|
130 | | - <!-- cors.allowed.origins -> * and credentials are not supported at the same time. |
131 | | - If you set to cors.allowed.origins to specific domains and support credentials open the below lines |
132 | | - <init-param> |
133 | | - <param-name>cors.support.credentials</param-name> |
134 | | - <param-value>true</param-value> |
135 | | - </init-param> |
136 | | - --> |
137 | | - <init-param> |
138 | | - <param-name>cors.allowed.headers</param-name> |
139 | | - <param-value>Accept, Origin, X-Requested-With, Access-Control-Request-Headers, Content-Type, Access-Control-Request-Method, Authorization</param-value> |
140 | | - </init-param> |
141 | | - <async-supported>true</async-supported> |
142 | | - </filter> |
143 | | - <filter-mapping> |
144 | | - <filter-name>CorsFilter</filter-name> |
145 | | - <url-pattern>/*</url-pattern> |
146 | | - </filter-mapping> |
147 | 148 | <servlet> |
148 | 149 | <servlet-name>OpenApi</servlet-name> |
149 | 150 | <servlet-class>io.swagger.v3.jaxrs2.integration.OpenApiServlet</servlet-class> |
|
0 commit comments