Open naviinbharathy opened 8 months ago
Hi, before running the backend server, you need to add minor configuration:
/* In AuthController.java */
// @CrossOrigin(origins = "*", maxAge = 3600)
@CrossOrigin(origins = "http://localhost:8081", maxAge = 3600, allowCredentials="true")
/* In TestController.java */
// @CrossOrigin(origins = "*", maxAge = 3600)
@CrossOrigin(origins = "http://localhost:8081", maxAge = 3600, allowCredentials="true")
I have followed your spring boot 3 and angular 17 JWT tutorial. Everything is working fine except JWT.