Changeset cae16b5 for springapp/src/main/java/mk/profesori
- Timestamp:
- 09/30/22 15:23:25 (2 years ago)
- Branches:
- main
- Children:
- 8d83180
- Parents:
- 62b653f
- Location:
- springapp/src/main/java/mk/profesori/springapp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
springapp/src/main/java/mk/profesori/springapp/Controller/PublicController.java
r62b653f rcae16b5 23 23 @RestController 24 24 @RequestMapping("/public") 25 @CrossOrigin(origins = { "http://192.168.0.17:3000", "http://192.168.0.2 4:3000" })25 @CrossOrigin(origins = { "http://192.168.0.17:3000", "http://192.168.0.28:3000" }) 26 26 public class PublicController { 27 27 -
springapp/src/main/java/mk/profesori/springapp/Controller/SecureController.java
r62b653f rcae16b5 25 25 @RestController 26 26 @RequestMapping("/secure") 27 @CrossOrigin(origins = { "http://192.168.0.17:3000", "http://192.168.0.2 4:3000" })27 @CrossOrigin(origins = { "http://192.168.0.17:3000", "http://192.168.0.28:3000" }) 28 28 public class SecureController { 29 29 -
springapp/src/main/java/mk/profesori/springapp/Security/SecurityConfiguration.java
r62b653f rcae16b5 37 37 @Override 38 38 public void addCorsMappings(CorsRegistry registry) { 39 registry.addMapping("/**").allowedOrigins("http://192.168.0.17:3000", "http://192.168.0.2 4:3000")39 registry.addMapping("/**").allowedOrigins("http://192.168.0.17:3000", "http://192.168.0.28:3000") 40 40 .allowCredentials(true); 41 41 }
Note:
See TracChangeset
for help on using the changeset viewer.