Skip to content

Commit

Permalink
#25 - x-site scripting headers
Browse files Browse the repository at this point in the history
  • Loading branch information
matijaabicic committed Oct 12, 2015
1 parent 8d875a8 commit 946bb88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ app.use(allowCrossDomain);

//function to help with cross-site scripting
function allowCrossDomain(req, res, next) {
res.Header('Access-Control-Allow-Methods', '*');
res.header("Access-Control-Allow-Headers", "X-Requested-With");
res.setHeader('Access-Control-Allow-Methods', '*');
res.setHeader("Access-Control-Allow-Headers", "X-Requested-With");
if (req.method === 'OPTIONS') {
res.send(200);
} else {
Expand Down
4 changes: 2 additions & 2 deletions settings.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//app-specific sentence

module.exports = {
debug : false,
debug : true,
slackChannel : "#football",
serverPort : 8080,
pingInteralInMilliseconds : 1000 * 60, // server main loop interval.
pingInteralInMilliseconds : 1000, // server main loop interval.
postBeforeTheMatch : true,
postAfterTheMatch : true,
preMatchWindowInMinutes: 5, // time before the match in minutes when we are ready to rant
Expand Down

0 comments on commit 946bb88

Please sign in to comment.