Skip to content
Snippets Groups Projects
Commit e1681a77 authored by Ryan Izard's avatar Ryan Izard
Browse files

Add default of FALSE to allowing all origins in cross-domain requests. Remove...

Add default of FALSE to allowing all origins in cross-domain requests. Remove old CORS code that was commented out.
parent 141ab6a1
No related branches found
No related tags found
No related merge requests found
......@@ -220,15 +220,6 @@ public class RestApiServer implements IFloodlightModule, IRestApiService {
}
}
/*CorsService corsService = new CorsService();
corsService.setAllowedOrigins(new HashSet<String>(Arrays.asList("*")));
corsService.setAllowedCredentials(true);
corsService.setContext(context);
corsService.setAllowingAllRequestedHeaders(true);
corsService.setEnabled(true);
this.getServices().add(corsService);*/
component.getClients().add(Protocol.CLAP);
component.getDefaultHost().attach(this);
component.start();
......
......@@ -56,5 +56,6 @@ net.floodlightcontroller.restserver.RestApiServer.useHttps=NO
net.floodlightcontroller.restserver.RestApiServer.useHttp=YES
net.floodlightcontroller.restserver.RestApiServer.httpsPort=8081
net.floodlightcontroller.restserver.RestApiServer.httpPort=8080
net.floodlightcontroller.restserver.RestApiServer.accessControlAllowAllOrigins=FALSE
net.floodlightcontroller.statistics.StatisticsCollector.enable=FALSE
net.floodlightcontroller.statistics.StatisticsCollector.collectionIntervalPortStatsSeconds=10
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment