grails-cors
grails-cors copied to clipboard
header are not adding when using 'as JSON' converters
Plugin seems to not add CORS headers when rendering data as JSON using grails JSON converter. I'm using grails 2.0.3
import grails.converters.JSON class RestaurantApiController{
def summary() {
def student=Student.get(params.id)
render student as JSON
}
}
I just realized that basic rendering is also not adding CORS headers. not sure if i'm missing something here.
render "Hello World"
same
Can one of you guys check to see if the servlet filter is being loaded? You can look at any stack trace from a controller and see if 'CorsFilter' is in there somewhere.
Has this issue ever been addressed? I have an issue that is possibly related.