hapi-cors-headers : hapi extension to enable CORS. You can installing hapi-cors-headers npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install hapi-cors-headers $ sudo npm install -g hapi-cors-headers
If want to update the hapi-cors-headers package execute the command as below,
$ sudo npm update hapi-cors-headers
Update package globally,
$ npm install -g hapi-cors-headers
$ sudo git clone https://github.com/rektide/hapi-cors-headers.git
$ sudo npm install -g ./hapi-cors-headers
hapi-cors-headers@1.0.3 /usr/lib/node_modules/hapi-cors-headers
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall hapi-cors-headers
Package Name | hapi-cors-headers |
Version | 1.0.3 |
Description | hapi extension to enable CORS |
Released Date | 2017-11-16T00:50:32.967Z |
Published by | gr2m |
How to Learn | https://www.npmjs.com/package/hapi-cors-headers/tutorial |