https://www.npmjs.com/search?q=hapi+cors
On Tuesday, December 8, 2015 at 6:44:45 PM UTC+2, ritu Kumari wrote: > > Hi, > > I want to add header in Hapi.js. Actually I am getting the data from > mongoldb and was able to send the ajax request. But it is giving me the > error that a header is missing. in the browser console. > > Error: No 'Access-Control-Allow-Origin' header is present on the requested > resource. Origin 'null' is therefore not allowed access. > > I am able to get the response in POSTMAN. But not able to get in the > browser. > > Here is the server.js file: > > https://gist.github.com/prudvihemanth/d3fa589b8f39a2a68109 > > Somebody pls hlp. > > Thanks > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/e447c7fc-6507-47f7-9749-08338d264a77%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
