Skip to content

Commit

Permalink
CORS updated to support all REST methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloFuente committed May 14, 2018
1 parent cd20873 commit 58a6c3c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker/create_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cp ../../openvidu/openvidu-server/target/openvidu-server-"$1".jar ./openvidu-ser

cd ../src/angular/frontend

ng build --environment=container --output-path ../../main/resources/static
ng build --configuration=container --output-path ../../main/resources/static

cd ../../../

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/openvidu/classroom/demo/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public WebMvcConfigurer corsConfigurer() {
return new WebMvcConfigurerAdapter() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**").allowedOrigins("*");
registry.addMapping("/**").allowedOrigins("*").allowedMethods("GET", "POST","PUT", "DELETE");;
}
};
}
Expand Down
7 changes: 2 additions & 5 deletions src/main/resources/static/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/resources/static/main.js.map

Large diffs are not rendered by default.

0 comments on commit 58a6c3c

Please sign in to comment.