Skip to content

Commit

Permalink
💚 fixing origins
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bouali committed Apr 9, 2024
1 parent 36c8c11 commit 37ef9e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion book-network/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.alibou</groupId>
<artifactId>book-network</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<name>book-network-api</name>
<description>Spring Boot project for book social network</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class BeansConfig {

private final UserDetailsService userDetailsService;

@Value("${application.cors.allowed-origins:*}")
@Value("${application.cors.origins:*}")
private List<String> allowedOrigin;

@Bean
Expand Down
5 changes: 1 addition & 4 deletions book-network/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ application:
frontend:
activation-url: http://localhost:4200/activate-account
cors:
allowed-origins:
- http://192.168.0.227:8088/
- http://localhost:8088/
- http://localhost:4200
origins: http://192.168.0.227:8088/,http://localhost:8088/,http://localhost:4200
file:
uploads:
photos-output-path: ./uploads
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- 1025:1025
bsn-api:
container_name: bsn-api
image: alibouali/bsn-api:1.0.9
image: alibouali/bsn-api:1.0.10
environment:
EMAIL_HOST_NAME: ${EMAIL_HOST_NAME}
EMAIL_USER_NAME: ${EMAIL_USER_NAME}
Expand Down

0 comments on commit 37ef9e9

Please sign in to comment.