Skip to content

Commit 807ac3b

Browse files
committed
Tweak comment
1 parent 685b8f1 commit 807ac3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

site/webpack.dev.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ const config: Configuration = {
2222
//
2323
// REMARK: needs webpack-dev-server import at top of file for typings
2424
devServer: {
25-
// allowedHosts are services that can access the running server. headers
26-
// are attached to all responses by the dev server. In v1, we use CODERD_HOST for
27-
// allowed host and origin in order to mitigate security risks. We don't have
28-
// an equivalent in v2 (at the moment) - but we can allow localhost and cdr.dev,
25+
// allowedHosts are services that can access the running server.
26+
// Setting allowedHosts sets up the development server to spend specific headers to allow cross-origin requests.
27+
// In v1, we use CODERD_HOST for the allowed host and origin in order to mitigate security risks.
28+
// We don't have an equivalent in v2 - but we can allow localhost and cdr.dev,
2929
// so that the site is accessible through dev urls.
3030
// We don't want to use 'all' or '*' and risk a security hole in our dev environments.
3131
allowedHosts: ["localhost", ".cdr.dev"],

0 commit comments

Comments
 (0)