Skip to content

Commit

Permalink
[Issue] Swagger CORS 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
82everywin committed Oct 13, 2024
1 parent cf8b48e commit 25f0169
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,23 @@
import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.servers.Server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;




@Configuration
public class SwaggerConfig {

@Bean
public OpenAPI openAPI() {
Server server = new Server();
server.setUrl("https://marketplace.inuappcenter.kr");
return new OpenAPI()
.components(new Components())
.addServersItem(server)
.info(apiInfo());
}

Expand Down

0 comments on commit 25f0169

Please sign in to comment.