Enable CORS in Controller Method

adplus-dvertising
adplus-dvertising

Question:
Enable CORS in Controller Method

1.@RequestMapping(value = "/products") @CrossOrigin(origins = "http://localhost:8080") public ResponseEntity getProduct() { return null; }

2.@RequestMapping(value = "/products") @CrossCORSOrigin(origins = "http://localhost:8080") public ResponseEntity getProduct() { return null; }

3.Both

4.None

Posted Date:-2020-11-25 01:22:46


adplus-dvertising

More MCQS Questions and answers

adplus-dvertising
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!
adplus-dvertising