| Index: tools/testing/dart/http_server.dart
|
| diff --git a/tools/testing/dart/http_server.dart b/tools/testing/dart/http_server.dart
|
| index 0254ad10d107544a5baa283317270634687f064f..a46867e4146504541ee3b6cb42d67e3634801b10 100644
|
| --- a/tools/testing/dart/http_server.dart
|
| +++ b/tools/testing/dart/http_server.dart
|
| @@ -32,7 +32,8 @@ void startHttpServer(String host, int port) {
|
| file.exists().then((exists) {
|
| if (exists) {
|
| // Allow loading from localhost in browsers.
|
| - resp.headers.set("Access-Control-Allow-Origin", "*");
|
| + resp.headers.set("Access-Control-Allow-Origin", "file://");
|
| + resp.headers.set('Access-Control-Allow-Credentials', 'true');
|
| file.openInputStream().pipe(resp.outputStream);
|
| } else {
|
| resp.statusCode = HttpStatus.NOT_FOUND;
|
|
|