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 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to