File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ const config: Configuration = {
22
22
//
23
23
// REMARK: needs webpack-dev-server import at top of file for typings
24
24
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,
29
29
// so that the site is accessible through dev urls.
30
30
// We don't want to use 'all' or '*' and risk a security hole in our dev environments.
31
31
allowedHosts : [ "localhost" , ".cdr.dev" ] ,
You can’t perform that action at this time.
0 commit comments