application.yml grails: cors: enabled: true 参考文档:http://docs.grails.org/snapshot/guide/single.html#cors