Skip to content

Commit

Permalink
Merge pull request #329 from woowacourse-teams/dev/be
Browse files Browse the repository at this point in the history
[BE] Swagger 의 CORS 문제 해결
  • Loading branch information
zangsu authored Aug 7, 2024
2 parents 0ed803c + 6608a80 commit 2daa178
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.servers.Server;

@Configuration
public class SpringDocConfiguration {
Expand All @@ -20,6 +21,7 @@ public OpenAPI openAPI() {
""");

return new OpenAPI()
.addServersItem(new Server().url("https://api.code-zap.com"))
.info(info);
}
}

0 comments on commit 2daa178

Please sign in to comment.