Skip to content

Commit

Permalink
cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Miensoap committed Jun 23, 2024
1 parent 75fbf30 commit 61e867a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BE/src/main/java/team07/airbnb/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ForwardedHeaderFilter forwardedHeaderFilter() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("https://squadbnb.site")
.allowedOrigins("https://squadbnb.site", "http://localhost:5173")
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true);
Expand Down

0 comments on commit 61e867a

Please sign in to comment.