(Quick Reference)

9 CORS support - Reference Documentation

Authors: Alvaro Sanchez-Mariscal

Version: 1.4.0

9 CORS support

This plugin comes pre-installed with the CORS plugin, which enables Cross-Origin Resource Sharing. Refer to the plugin documentation to learn how to configure it.

The CORS plugin activates itself by default. If you don't want it for some environments, you can use cors.enabled = false within the appropriate environment block in your Config.groovy.

If you don't want CORS support at all, you can skip the plugin by excluding it when defining this plugin in your BuildConfig.groovy:

compile ':spring-security-rest:{{VERSION}}', {
    exclude 'cors
}