- Timestamp:
- 09/30/22 15:23:25 (2 years ago)
- Branches:
- main
- Children:
- 8d83180
- Parents:
- 62b653f
- Location:
- springapp/src/main
- Files:
-
- 4 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 } -
springapp/src/main/resources/application.properties
r62b653f rcae16b5 8 8 spring.jpa.properties.hibernate.format_sql=true 9 9 server.address=192.168.0.17 10 spring.mail.host=192.168.0.2 410 spring.mail.host=192.168.0.28 11 11 spring.mail.username=mailuser 12 12 spring.mail.password=mailpass
Note:
See TracChangeset
for help on using the changeset viewer.