Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: runtime/bin/vmservice/vmservice_io.dart

Issue 2125343002: Ban cross origin WebSocket connections to the service protocol (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: skybrian review Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/vmservice/server.dart ('k') | runtime/bin/vmservice_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/vmservice_io.dart
diff --git a/runtime/bin/vmservice/vmservice_io.dart b/runtime/bin/vmservice/vmservice_io.dart
index ba2b27701501b054cd2d156bc63c45886bd8d9b4..47535494c922d1b3468d5128110cd8fb34d2ffd5 100644
--- a/runtime/bin/vmservice/vmservice_io.dart
+++ b/runtime/bin/vmservice/vmservice_io.dart
@@ -19,7 +19,8 @@ int _port;
String _ip;
// Should the HTTP server auto start?
bool _autoStart;
-
+// Should the HTTP server run in devmode?
+bool _originCheckDisabled;
bool _isWindows = false;
var _signalWatch;
var _signalSubscription;
@@ -35,7 +36,7 @@ _lazyServerBoot() {
// Lazily create service.
var service = new VMService();
// Lazily create server.
- server = new Server(service, _ip, _port);
+ server = new Server(service, _ip, _port, _originCheckDisabled);
}
Future cleanupCallback() async {
« no previous file with comments | « runtime/bin/vmservice/server.dart ('k') | runtime/bin/vmservice_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698