Skip to content

Commit

Permalink
this should fix the cors issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dinubs committed May 31, 2016
1 parent 7347195 commit d2bfb7e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ module.exports = function(server) {
server.route({method: 'GET', path: '/', handler: c.Base.index});
server.route({method: 'POST', path: '/', handler: c.Base.parse});

server.route({
path: '/{p*}',
method: 'OPTIONS',
handler: function(req, reply){
console.log('test');
reply({method: 'options'});
},
config: {
auth: false,
cors: true
}
});

// Static files
server.route({
method: 'GET',
Expand Down

0 comments on commit d2bfb7e

Please sign in to comment.