Commit f1fdfac7 authored by Siva Rama Krishna's avatar Siva Rama Krishna

disable cross origin

parent 300f3fb4
...@@ -6,9 +6,11 @@ import org.springframework.http.ResponseEntity; ...@@ -6,9 +6,11 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.CrossOrigin;
@RestController @RestController
@RequestMapping(value = "/") @RequestMapping(value = "/")
@CrossOrigin
public class Default { public class Default {
@GetMapping(value = "/", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.ALL_VALUE) @GetMapping(value = "/", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.ALL_VALUE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment