fix(admin): remove @CrossOrigin that conflicts with WebConfig allowCredentials=true
Some checks failed
Deploy RIT Freshers Hub to VPS / Deploy to Live VPS (push) Has been cancelled
Some checks failed
Deploy RIT Freshers Hub to VPS / Deploy to Live VPS (push) Has been cancelled
This commit is contained in:
@@ -12,7 +12,6 @@ import java.util.*;
|
|||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/admin")
|
@RequestMapping("/api/admin")
|
||||||
@CrossOrigin(origins = "*")
|
|
||||||
public class AdminController {
|
public class AdminController {
|
||||||
|
|
||||||
// Hardcoded credentials - no @Value injection needed
|
// Hardcoded credentials - no @Value injection needed
|
||||||
|
|||||||
Reference in New Issue
Block a user