Skip to content

Commit

Permalink
Merge pull request #328 from zangsu/fix/swagger-cors
Browse files Browse the repository at this point in the history
Swagger 의 CORS 문제 해결
  • Loading branch information
zangsu authored Aug 7, 2024
2 parents 8272db6 + 7f2ff53 commit 6608a80
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 6608a80

Please sign in to comment.