On 15 September 2010 12:28, [email protected] <[email protected]> wrote: > 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', > { > method:'get', > requestHeaders: {Accept: 'application/json'}, > onSuccess: function(transport){ > var response = transport.responseText; > var posts = response.evalJSON(); > etc.... > } > }); > > 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/ > javascript. > > The content type in the request is application/x-www-form-urlencoded. > > Any ideas? > > Nige > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > >
What type is the response for http://x.x.x.x:3000/posts.js -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
