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/44e65df7-2cf3-4c3e-9eed-1d9290d1727d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to