Skip to content

Commit 04005d2

Browse files
committed
CORS request fails in case of allowedOrigins set to all #145
1 parent a4c6f44 commit 04005d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/rest-api/src/com/haulmont/addon/restapi/rest-dispatcher-spring.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
</bean>
214214

215215
<bean id="cuba_RestCorsConfig" class="org.springframework.web.cors.CorsConfiguration">
216-
<property name="allowedOrigins" value="${cuba.rest.allowedOrigins}"/>
216+
<property name="allowedOriginPatterns" value="${cuba.rest.allowedOrigins}"/>
217217
<property name="allowedHeaders" value="*"/>
218218
<property name="allowedMethods" value="*"/>
219219
<property name="allowCredentials" value="true"/>

0 commit comments

Comments
 (0)