@CrossOrigin
Jump to navigation
Jump to search
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 {
...
}