Skip to content

Commit

Permalink
Merge pull request #81 from gooormmoon/patch/sshinylee
Browse files Browse the repository at this point in the history
feat: Set security
  • Loading branch information
hanni66 authored Jun 23, 2024
2 parents f7fedbb + f8723ec commit 8e4af04
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package gooroommoon.algofi_compile.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedHeaders("*")
.allowedMethods("*");
}
}

0 comments on commit 8e4af04

Please sign in to comment.