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

Issue 443373003: Make the default HTTP server configuration more secure (Closed)

Created:
6 years, 4 months ago by Søren Gjesse
Modified:
6 years, 4 months ago
Reviewers:
Anders Johnsen
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make the default HTTP server configuration more secure Add a mechanism for setting default headers to add to all responses. By default each the HTTP response now will contain the following headers: Content-Type: text/plain; charset=utf-8 X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block New cookies created are now 'httpOnly' by default. BUG=http://dartbug.com/19676 R=ajohnsen@google.com Committed: https://code.google.com/p/dart/source/detail?r=39118

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed review comments #

Patch Set 3 : Additional edit #

Total comments: 8

Patch Set 4 : Addressed more review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -25 lines) Patch
M sdk/lib/io/http.dart View 1 3 chunks +24 lines, -0 lines 0 comments Download
M sdk/lib/io/http_headers.dart View 1 2 3 3 chunks +23 lines, -1 line 0 comments Download
M sdk/lib/io/http_impl.dart View 1 2 3 5 chunks +18 lines, -4 lines 0 comments Download
M tests/standalone/io/http_cookie_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/io/http_detach_socket_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/io/http_headers_test.dart View 1 3 chunks +29 lines, -20 lines 0 comments Download
M tests/standalone/io/http_server_response_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/io/http_server_test.dart View 1 2 chunks +87 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Gjesse
6 years, 4 months ago (2014-08-07 09:40:01 UTC) #1
Anders Johnsen
Have you tested what this does to pkg/pub? https://codereview.chromium.org/443373003/diff/1/sdk/lib/io/http_headers.dart File sdk/lib/io/http_headers.dart (right): https://codereview.chromium.org/443373003/diff/1/sdk/lib/io/http_headers.dart#newcode256 sdk/lib/io/http_headers.dart:256: _headers.clear(); ...
6 years, 4 months ago (2014-08-08 06:15:45 UTC) #2
Søren Gjesse
PTAL pkg and pub tests pass. https://codereview.chromium.org/443373003/diff/1/sdk/lib/io/http_headers.dart File sdk/lib/io/http_headers.dart (right): https://codereview.chromium.org/443373003/diff/1/sdk/lib/io/http_headers.dart#newcode256 sdk/lib/io/http_headers.dart:256: _headers.clear(); On 2014/08/08 ...
6 years, 4 months ago (2014-08-11 14:10:10 UTC) #3
Anders Johnsen
LGTM, with a few comments. https://codereview.chromium.org/443373003/diff/40001/sdk/lib/io/http.dart File sdk/lib/io/http.dart (right): https://codereview.chromium.org/443373003/diff/40001/sdk/lib/io/http.dart#newcode604 sdk/lib/io/http.dart:604: void clear(); clear->clearDefaultHeaders? https://codereview.chromium.org/443373003/diff/40001/sdk/lib/io/http_headers.dart ...
6 years, 4 months ago (2014-08-12 05:49:13 UTC) #4
Søren Gjesse
https://codereview.chromium.org/443373003/diff/40001/sdk/lib/io/http.dart File sdk/lib/io/http.dart (right): https://codereview.chromium.org/443373003/diff/40001/sdk/lib/io/http.dart#newcode604 sdk/lib/io/http.dart:604: void clear(); On 2014/08/12 05:49:13, Anders Johnsen wrote: > ...
6 years, 4 months ago (2014-08-12 06:53:49 UTC) #5
Søren Gjesse
6 years, 4 months ago (2014-08-12 07:12:13 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as 39118 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698