spring-guides / gs-rest-service-cors

Enabling Cross Origin Requests for a RESTful Web Service :: Learn how to create a RESTful web service with Spring that support Cross-Origin Resource Sharing (CORS).

Home Page:https://spring.io/guides/gs/rest-service-cors/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@CrossOrigin(origins="http://localhost:4200") is asking for array of string not single string

vikas-appdev opened this issue · comments

I am using kotlin with spring boot.

Java annotations accept single values in place of arrays. You might have to do something different with Kotlin, but this guide is using Java, so it wouldn't be relevant.