Skip to content

Commit 31b0a1a

Browse files
davidreherSpaceK33z
authored andcommitted
set headers on all requests to support e.g. CORS
1 parent 4713e97 commit 31b0a1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function Server(compiler, options) {
245245
}.bind(this),
246246

247247
headers: function() {
248-
app.get("*", this.setContentHeaders.bind(this));
248+
app.all("*", this.setContentHeaders.bind(this));
249249
}.bind(this),
250250

251251
magicHtml: function() {

0 commit comments

Comments
 (0)