Skip to content

Commit

Permalink
update cors
Browse files Browse the repository at this point in the history
  • Loading branch information
VauP committed Oct 9, 2023
1 parent 0c24a17 commit 54fa12d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
5 changes: 0 additions & 5 deletions server/API/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>6.0.9</version> <!-- use a versão apropriada -->
</dependency>


</dependencies>
Expand Down
17 changes: 0 additions & 17 deletions server/API/core/src/main/java/org/SciSight/config/CorsConfig.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class SearchController {

private final DataItemService dataItemService;

@CrossOrigin
@PostMapping("/{fieldOfStudy}")
public ResponseEntity<DataItem> get(@PathVariable("fieldOfStudy") final String field,
@RequestBody RequestModel requestModel) {
Expand Down

0 comments on commit 54fa12d

Please sign in to comment.