Closed hbogaards closed 8 years ago
When running my Grails application with grails.env=production I still get the Access-Control headers.
grails.env=production
Access-Control
This is caused by the CorsService.
CorsService
It contains this code:
if( excludeEnvironments && excludeEnvironments.contains(Environment.current.name) ) { // current env is excluded // skip false } else if( includeEnvironments && !includeEnvironments.contains(Environment.current.name) ) { // current env is not included // skip false } ...
The false lines should be replaced with return false or the rest of the method should be encased in an else clause
false
return false
else
When running my Grails application with
grails.env=production
I still get theAccess-Control
headers.This is caused by the
CorsService
.It contains this code:
The
false
lines should be replaced withreturn false
or the rest of the method should be encased in anelse
clause