Add details how to enable on HAPI? #99

Open
srl295 opened this Issue May 1, 2015 · 2 comments

Projects

None yet

2 participants

@srl295
srl295 commented May 1, 2015

docs says

CORS headers are disabled by default. To enable, set cors to true, or ... [other options]

@monsur
Owner
monsur commented May 13, 2015

Do you have a full code sample (or a link to a full code sample)? Can you create a pull request?

@srl295
srl295 commented May 15, 2015

I don't have a full sample yet but this seems to work:
server2.route({path:'/x', method: 'GET', config: {cors: true}, handler: function(request,reply){reply.write('Hi');}});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment