Skip to content

Commit

Permalink
refactor: try to fix corse
Browse files Browse the repository at this point in the history
  • Loading branch information
arturhasparian committed Mar 20, 2024
1 parent f7f8c61 commit 2dd1be6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dev/resources/application-development.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ logging.level.org.springframework.web=INFO
spring.output.ansi.enabled=always

# Server
server.frontend.host=http://localhost:3000
server.frontend.host=https://etachka-marketplace.me/

# Mail
spring.mail.username=
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins(frontendHost)
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS");
// .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS");
}
}
2 changes: 1 addition & 1 deletion src/main/resources/application-production.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spring.mail.properties.mail.smtp.starttls.enable=true
# Server
server.url=https://api.etachka-marketplace.me
server.description=REST API eTachka Marketplace
server.frontend.host=https://etachka-marketplace.me
server.frontend.host=https://etachka-marketplace.me/

# Jwt
jwt.secret.access=${JWT_TOKEN_SECRET_ACCESS}
Expand Down

0 comments on commit 2dd1be6

Please sign in to comment.