Skip to content

Commit 14f246b

Browse files
author
Manuela Weigold
committed
Merge remote-tracking branch 'remotes/origin/master' into masterthesis/patternauthoringAPI
2 parents 64ffe37 + a3414d3 commit 14f246b

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

.docker/docker-compose.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/main/java/com/patternpedia/api/config/ResourceServerConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public FilterRegistrationBean customCorsFilter() {
6262
CorsConfiguration config = new CorsConfiguration();
6363
config.setAllowCredentials(true);
6464
config.addAllowedOrigin("http://localhost:4200");
65+
config.addAllowedOrigin("http://localhost:4201");
6566
config.addAllowedHeader("*");
6667
config.addAllowedMethod("*");
6768
source.registerCorsConfiguration("/**", config);
@@ -71,4 +72,4 @@ public FilterRegistrationBean customCorsFilter() {
7172
bean.setOrder(Ordered.HIGHEST_PRECEDENCE);
7273
return bean;
7374
}
74-
}
75+
}

src/main/resources/application.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
server.port=8080
22

3-
spring.datasource.url=jdbc:postgresql://localhost:5432/patternpedia
4-
spring.datasource.username=patternpedia
5-
spring.datasource.password=patternpedia
3+
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
4+
spring.datasource.username=postgres
5+
spring.datasource.password=postgres
66
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
77
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
88
spring.jpa.hibernate.ddl-auto=update

0 commit comments

Comments
 (0)