If you are developing w3c widget on opera platforms( i don't think it is
supported on other platforms yet) they do allow cross domain scripting. Just
look at their security configuration for widgets.

On Wed, Dec 9, 2009 at 11:40 PM, Daniel Silva
<danielmartinssi...@gmail.com>wrote:

> I do understand that in a web application that problem may occur, however
> I'm developing a w3c widget, and so, I  don't have any associated domain.
> How can I authenticate a w3c widget using Oauth with javascript?
>
> 2009/11/30 Raffi Krikorian <ra...@twitter.com>
>
> i think that's the problem - you can't make an ajax request to a server
>> that is not hosting the HTML/Javascript that you are loading in the browser
>> (look for "same origin 
>> policy<http://www.google.com/search?q=xmlhttprequest+Same+Origin+Policy>").
>>  it *may* be possible to do it using jsonp, but i haven't tried it
>> myself.
>>
>> Yes, it is. I'm using this Oauth API
>> http://oauth.googlecode.com/svn/code/javascript/oauth.js
>>
>> is this a cross domain ajax request issue?
>>>
>>>  I'm doing Oauth authentication for my application and it run's well in
>>>> IE. When i change to Firefox, Safari or Opera this error appears
>>>> "[Exception... "Component returned failure code: 0x80004005
>>>> (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]"  nsresult: "0x80004005
>>>> (NS_ERROR_FAILURE)"  location: "JS frame :: " when I'm sending the
>>>> tokens for application.
>>>>
>>>> Why this append?
>>>>
>>>> thanks for the help..
>>>>
>>>> best regards,
>>>> Daniel
>>>>
>>>
>>  --
>> Raffi Krikorian
>> Twitter Platform Team
>> ra...@twitter.com | @raffi
>>
>>
>>
>>
>>
>
>
> --
> regards,
>
> Daniel Silva
>

Reply via email to