diff --git a/MainPage/.gitignore b/MainPage/.gitignore new file mode 100644 index 0000000..646ee36 --- /dev/null +++ b/MainPage/.gitignore @@ -0,0 +1,26 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +.parcel-cache \ No newline at end of file diff --git a/MainPage/LogForMainPage.js b/MainPage/LogForMainPage.js new file mode 100644 index 0000000..e69de29 diff --git a/MainPage/MainPage.html b/MainPage/MainPage.html new file mode 100644 index 0000000..e69de29 diff --git a/MainPage/package-lock.json b/MainPage/package-lock.json new file mode 100644 index 0000000..e69de29 diff --git a/MainPage/package.json b/MainPage/package.json new file mode 100644 index 0000000..e69de29 diff --git a/src/main/java/com/example/demo/WebConfig.java b/src/main/java/com/example/demo/WebConfig.java new file mode 100644 index 0000000..5f07edd --- /dev/null +++ b/src/main/java/com/example/demo/WebConfig.java @@ -0,0 +1,13 @@ +package com.example.demo; + +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 WebConfig implements WebMvcConfigurer { + @Override + public void addCorsMappings(CorsRegistry registry){ + registry.addMapping("/**").allowedMethods("*"); + } +} \ No newline at end of file