Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix Missing Origin Validation error for "webpack-dev-server" in npm

npm audit

                   === npm audit security report ===


                             Manual Review
         Some vulnerabilities require your attention to resolve

      Visit https://go.npm.me/audit-guide for additional guidance

High Missing Origin Validation

Package webpack-dev-server

Patched in >=3.1.6

Dependency of laravel-mix [dev]

Path laravel-mix > webpack-dev-server

More info https://nodesecurity.io/advisories/725

found 1 high severity vulnerability in 11710 scanned packages 1 vulnerability requires manual review. See the full report for details.

How to fix this i cannot use laravel whenever i try run command "npm run dev" it shows several problem

like image 526
Subhankar Jana Avatar asked Nov 11 '18 03:11

Subhankar Jana


Video Answer


1 Answers

This audit is just pointing out a vulnerability in your version of the webpack-dev-server package.

I don't think it's related to the other problems you're encountering when you run npm run dev as I'm currently using a vulnerable version of the same package in my dev environment as well and it works fine.

If you're using laravel mix, it is dependent on a vulnerable version of webpack-dev-server (2.11.1) so you can't really fix this problem and will see this annoying audit message until laravel mix is updated to use a newer, secure version.

like image 76
wheelmaker Avatar answered Sep 20 '22 02:09

wheelmaker