Skip to content

Commit

Permalink
Added Access-Control-Allow-Origin header
Browse files Browse the repository at this point in the history
  • Loading branch information
crock authored Oct 11, 2018
1 parent 5e7c1c0 commit 84e87a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ const CheckSteam = require('./libs/Steam');
const CheckYoutube = require('./libs/Youtube');
const CheckMixer = require('./libs/Mixer');

var options = {
setHeaders: function (res, path, stat) {
res.set('Access-Control-Allow-Origin', '*')
}
}

app.use(express.static('public', options))

app.use(router);
app.use(timeout('5s'));
app.use(bodyParser.json());
Expand Down

0 comments on commit 84e87a9

Please sign in to comment.