Answers for "how configure cors to allow all"

0

cors headers allow all

// allow all orgins, add the following http header in the response:
Access-Control-Allow-Origin: *
Posted by: Guest on March-11-2021
0

CORS config

@CrossOrigin(origins = "http://localhost:8080")
	@GetMapping("/greeting")
	public Greeting greeting(@RequestParam(required = false, defaultValue = "World") String name) {
		System.out.println("==== get greeting ====");
		return new Greeting(counter.incrementAndGet(), String.format(template, name));COPY
Posted by: Guest on December-18-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language