Cross-Origin Requests with the CORS NPM Package

Cross-Origin Resource Sharing (CORS) is a security measure browser use to control requests between different web origins. When your web page wants to fetch data from a different domain, CORS ensures it’s done securely. CORS Headers: Access-Control-Allow-Origin: Specifies which origins can access the resource. Access-Control-Allow-Methods: Defines which HTTP methods are allowed for accessing the resource.… Continue reading Cross-Origin Requests with the CORS NPM Package

Resolve the error: ‘npm/gulp is not recognized as an internal or external command operable program or batch file’ while running npm and gulp commands through Visual Studio

To resolve the issue follow the steps: 1.Make sure that you have node installed on your computer 2.Copy the folder path of the nodeC:\Program Files\nodejs\ 3.Change settingsGo to Control Panel -> View advanced system settingsIn the Advanced tab -> click on Environment variables Under System variables, click on Path and then click on Edit as… Continue reading Resolve the error: ‘npm/gulp is not recognized as an internal or external command operable program or batch file’ while running npm and gulp commands through Visual Studio