Skip to content

Commit

Permalink
ignore cors for now
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Busk committed Jan 10, 2025
1 parent 40d86ed commit a2f68c7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
import eu.possiblex.portal.application.entity.VersionTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin("*") // TODO replace this with proper CORS configuration
@Slf4j
public class CommonPortalRestApiImpl implements CommonPortalRestApi {

Expand All @@ -17,6 +19,7 @@ public class CommonPortalRestApiImpl implements CommonPortalRestApi {

@Override
public VersionTO getVersion() {

return new VersionTO(version, versionDate);
}
}
2 changes: 2 additions & 0 deletions backend/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server:
port: 8088
2 changes: 1 addition & 1 deletion backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spring:
format_sql: true

server:
port: 8088
port: 8080

management:
endpoints:
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.parallel=true

0 comments on commit a2f68c7

Please sign in to comment.