@CrossOrigin: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 1: Line 1:
=Internal=
=Internal=


* [[Spring_Security_Concepts#CORS_Support|Spring Security Concepts]]
* [[Spring_REST_Concepts#Annotations|Spring REST Concepts]]
* [[Spring_REST_Concepts#Annotations|Spring REST Concepts]]



Revision as of 23:44, 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 {
  ...
}