Access to restricted URI denied. - Firebug Lite

2,406 views
Skip to first unread message

stevew

unread,
Jun 22, 2010, 6:31:18 AM6/22/10
to Firebug
I am using Firebug Lite for Google Chrome - Version: 1.3.0.6879 on
Chrome version 5.0.375.70

and when I try to inspect css files on my dev server I get the message
"Access to restricted URI denied" (under the CSS tab) and the style
window on the right says "This element has no style rules." even
though it blatantly does

I assume this is some kind of security thing, but is there anyway to
either turn it off or give it a list of trusted local addresses?

I tried adding entries to my hosts file, and that does not seem to help

Pedro Simonetti Garcia

unread,
Jun 22, 2010, 9:38:29 AM6/22/10
to fir...@googlegroups.com
Hi Steve,

2010/6/22 stevew <stevew...@gmail.com>:


> I am using Firebug Lite for Google Chrome - Version: 1.3.0.6879 on
> Chrome version 5.0.375.70
>
> and when I try to inspect css files on my dev server I get the message
> "Access to restricted URI denied" (under the CSS tab)

Firebug Lite relies purely on JavaScript to read the stylesheets,
therefore it cannot read external resources (scripts/stylesheets).


> and the style window on the right says "This element has no style rules."  even
> though it blatantly does

If Firebug Lite cannot read the stylesheet, it won't be able to read the
CSS rules. I guess that in such cases the "This element has no style
rules" is kind of confusing for the users, because in fact the element
may have style rules in the external stylesheet, so I think it would be
appropriate to include a warning message like "some stylesheets
could not be loaded due to the same origin policy".


> I assume this is some kind of security thing, but is there anyway to
> either turn it off or give it a list of trusted local addresses?

We are working on ways to solve this issue in the future, but in the
meantime, the only workaround is to load the stylesheets locally
(that is, in the same domain).

So, you might use:
<link href="/path/to/styles.css" rel="stylesheet" type="text/css" />

Instead of:
<link href="http://myserver.com/path/to/styles.css" rel="stylesheet"
type="text/css" />

Please note that the same apply to imported rules. You might use:
@import url("/path/to/imported.css");

Instead of:
@import url("http://myserver.com/path/to/imported.css");


> I tried adding entries to my hosts file, and that does not seem to help

Let me know if that solves your problem. If you have any other
issues/suggestions feel free to ask here in the group.

regards,

Pedro Simonetti.


>
> --
> You received this message because you are subscribed to the Google Groups "Firebug" group.
> To post to this group, send email to fir...@googlegroups.com.
> To unsubscribe from this group, send email to firebug+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages