crossorigin removed

This commit is contained in:
Sumedh
2024-09-30 15:21:34 +00:00
parent f4fd984733
commit 2bd1fb8c69
4 changed files with 1 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
package com.olympus.hermione.controllers; package com.olympus.hermione.controllers;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@@ -12,7 +11,6 @@ import com.olympus.hermione.services.CanvasExecutionService;
@RestController @RestController
@CrossOrigin
public class CanvasController { public class CanvasController {
@Autowired @Autowired

View File

@@ -1,7 +1,6 @@
package com.olympus.hermione.controllers; package com.olympus.hermione.controllers;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@@ -18,7 +17,6 @@ import com.olympus.hermione.services.ScenarioExecutionService;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
@RestController @RestController
@CrossOrigin
public class ScenarioController { public class ScenarioController {
@Autowired @Autowired

View File

@@ -7,7 +7,6 @@ import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication; import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
@@ -21,7 +20,6 @@ import com.olympus.hermione.security.entity.User;
import com.olympus.hermione.security.utility.JwtTokenProvider; import com.olympus.hermione.security.utility.JwtTokenProvider;
@RestController @RestController
@CrossOrigin
@RequestMapping("/api/auth") @RequestMapping("/api/auth")
public class AuthController { public class AuthController {

View File

@@ -19,4 +19,4 @@ neo4j.username=neo4j
neo4j.password=8SrSqQ3q6q9PQNWtN9ozqSQfGce4lfh_n6kKz2JIubQ neo4j.password=8SrSqQ3q6q9PQNWtN9ozqSQfGce4lfh_n6kKz2JIubQ
hermione.fe.url="http://hermione.olympusai.live" hermione.fe.url=