I have the following request in my app. It works fine in Safari 5.

new Ajax.Request('http://x.x.x.x:3000/posts.js',
            requestHeaders: {Accept: 'application/json'},
            onSuccess: function(transport){
                    var response = transport.responseText;
                    var posts = response.evalJSON();

In chrome 5 I get the error Refused to get unsafe header "X-JSON".

When I point the chrome browser at my url json is returned but with
the warning:
Resource interpreted as document but transferred with MIME type text/

The content type in the request is application/x-www-form-urlencoded.

Any ideas?


You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to