Skip to content

Commit 2f02d0c

Browse files
committed
Merge pull request #499 from BROCKHAUS-AG/master
set headers on all methods to support e.g. CORS
2 parents dd61b99 + 0cf7830 commit 2f02d0c

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)