Skip to content

Commit

Permalink
feat(cors): disable cors
Browse files Browse the repository at this point in the history
  • Loading branch information
malikzh committed Aug 23, 2024
1 parent 1779969 commit 4c02a25
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/kz/ncanode/configuration/CorsConfiguration.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package kz.ncanode.configuration;

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 CorsConfiguration implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**").allowedMethods("*");
}
}

0 comments on commit 4c02a25

Please sign in to comment.