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:
Somebody pls hlp.
Thanks