Skip to content

Commit 0cf7830

Browse files
committed
set headers on all requests to support e.g. CORS
1 parent dd61b99 commit 0cf7830

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)