Problems in Chromium

18 views
Skip to first unread message

Lundberg

unread,
Jun 11, 2010, 4:06:04 AM6/11/10
to canviz
Hello,

I have just starting looking in to using canviz but I ran in to
problems with the Hello World example. The graph is missing
in the on the new way-side of the example page in Chromium (5.0.375.38
(46659)). The example page displays correctly
(except that the "You clicked"-text is displayed under the new graph)
in Firefox (3.6.3).

I get this error message "Refused to get unsafe header "X-JSON"" when
inspecting the elements of the page via right
click and Inspect Elements in Chromium.

Is there anything I can do to get the graph displayed?

Ryan Schmidt

unread,
Jun 17, 2010, 5:31:40 PM6/17/10
to can...@googlegroups.com
On Jun 11, 2010, at 03:06, Lundberg wrote:

> I have just starting looking in to using canviz but I ran in to
> problems with the Hello World example. The graph is missing
> in the on the new way-side of the example page in Chromium (5.0.375.38
> (46659)).

> I get this error message "Refused to get unsafe header "X-JSON"" when
> inspecting the elements of the page via right
> click and Inspect Elements in Chromium.

Have you modified the example in any way -- changed any URLs? My Googling of "Refused to get unsafe header" suggests this is because of hosting JavaScript files on different domains, which my examples don't do as shipped.

Do you see this problem only in Chromium? I don't see any problem with Chrome on Mac OS X but I have never tried Chromium.


> The example page displays correctly
> (except that the "You clicked"-text is displayed under the new graph)
> in Firefox (3.6.3).

I see the same; there's something wrong there. I don't have the time to look into how to fix this right now. If someone else can figure it out and let me know, that would be great. In the mean time if you could file a bug report that would be helpful for tracking purposes.


Lundberg

unread,
Jun 21, 2010, 10:11:48 AM6/21/10
to canviz
On Jun 17, 11:31 pm, Ryan Schmidt <google-2...@ryandesign.com> wrote:
> On Jun 11, 2010, at 03:06, Lundberg wrote:
>
> > I have just starting looking in to using canviz but I ran in to
> > problems with the Hello World example. The graph is missing
> > in the on the new way-side of the example page in Chromium (5.0.375.38
> > (46659)).
> > I get this error message "Refused to get unsafe header "X-JSON"" when
> > inspecting the elements of the page via right
> > click and Inspect Elements in Chromium.
>
> Have you modified the example in any way -- changed any URLs? My Googling of "Refused to get unsafe header" suggests this is because of hosting JavaScript files on different domains, which my examples don't do as shipped.
>
> Do you see this problem only in Chromium? I don't see any problem with Chrome on Mac OS X but I have never tried Chromium.

I found that if I serve the Hello World example in a correct way, as
in from a correctly setup apache installation, the example displays
correctly.

My problem was that I was trying to access it from an absolute path
directly from the file system. I guess that collide with the Chromium
security standards.

>
> >  The example page displays correctly
> > (except that the "You clicked"-text is displayed under the new graph)
> > in Firefox (3.6.3).
>
> I see the same; there's something wrong there. I don't have the time to look into how to fix this right now. If someone else can figure it out and let me know, that would be great. In the mean time if you could file a bug report that would be helpful for tracking purposes.

I will do that.

Thank you for your reply.
Reply all
Reply to author
Forward
0 new messages