I had a similar error, my console looked like this:

My problem was that I launched my site in a subfolder, as the company used one top domain and no subdomains. Like this:
host.com/app1
host.com/app2
My code looked to include scripts that worked fine on localhost but not in app1 or app2:
<link rel="stylesheet" type="text/css" href="/Content/css/font-awesome.min.css" />
Added tilde sign ~ to src, and then everything works:
<link rel="stylesheet" type="text/css" href="~/Content/css/font-awesome.min.css" />
Explanation ~ vs / :
/ - site root~/ - The root directory of the application
/ will return the root of the site ( http://host.com/ ),
~/ will return the root of the application ( http://host.com/app1/ ).
Ogglas Nov 14 '16 at 13:27 2016-11-14 13:27
source share