I would like to do cross origin communication using Grails in server side. The only documentation that I found is this one
https://grails.org/plugin/cors
but thi
The cleanest and simplest solution for grails 3.1.x I found is to add the Apache default CorsFilter:
import org.apache.catalina.filters.CorsFilter
// Place your Spring DSL code here
beans = {
corsFilter(CorsFilter) //Custom CorsFilter under src/main/java/ works as well. I prefer Apache though...
}
The answer from #user215556 works as well but the default setting of the Apache Cors filter is ok as well