@CrossOrigin: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 3: Line 3:
* [[Spring_Security_Concepts#CORS_Support|Spring Security Concepts]]
* [[Spring_Security_Concepts#CORS_Support|Spring Security Concepts]]
* [[Spring_REST_Concepts#Annotations|Spring REST Concepts]]
* [[Spring_REST_Concepts#Annotations|Spring REST Concepts]]
* [[Cross-Origin_Resource_Sharing#CORS_Support_in_Spring|CORS]]


=Overview=
=Overview=

Revision as of 23:45, 29 March 2019

Internal

Overview

Adds headers that configure the browser to consume (or not) the API.

Example

@RestController
@RequestMapping(path="/inhabitants", produces = "application/json")
@CrossOrigin(origins="*")
public class InhabitantsController {
  ...
}