Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access to restricted URI denied when linking to LESS css

I just downloaded the semantic CSS and was running the examples but saw the following error on Firefox

Access to restricted URI denied

file:///C:/semanticcss/examples/fixed/fixed.less 

Below is the code in the example page

<!-- Stylesheets -->
    <link rel="stylesheet" href="fixed.less" type="text/less" media="screen" />

<!-- Scripts -->
    <script src="../../js/less-1.1.3.min.js" type="text/javascript"></script>

How can I get rid of this error?

like image 203
Omnipresent Avatar asked Nov 05 '22 15:11

Omnipresent


1 Answers

This is on purpose. Local files may only read other local files in the same directory or sub-directories.

See https://developer.mozilla.org/en/Same-origin_policy_for_file%3a_URIs

like image 92
webwurst Avatar answered Nov 09 '22 04:11

webwurst