2

I try to write Opera extension, it must be able to call AJAX requests to third-party site.

What I have in config.xml:

<access origin="*" />

I am authorized on this third-party site: please find that cookie exists

I call AJAX using jQuery from background page in a very simple way:

$.ajax(params);

What I get in Dragonfly? AJAX call is sent, but no cookies in request. Please see a screenshot: enter image description here

Problem exists only on extension background page. Simple access to this site transfers cookies well.

What am I doing wrong? How to make background page see my cookies? Or what is another way to call third-party site from my extension?

Dmitrii Tarasov
  • 314
  • 1
  • 13
  • Possible duplicate: http://stackoverflow.com/questions/2870371/why-is-jquerys-ajax-method-not-sending-my-session-cookie and http://stackoverflow.com/questions/2054316/jquery-sending-credentials-with-cross-domain-posts – Larry Battle Dec 08 '12 at 18:26
  • Thanks Larry, I am afraid it is not a duplicate. I tried to set withCredentials field. Also I've checked domain - it is correct. – Dmitrii Tarasov Dec 16 '12 at 10:46

1 Answers1

1

When I read Ajax request to third party site I directly think about cross domain restrictions: Cross domain cookies

Community
  • 1
  • 1
Mehdi Karamosly
  • 4,996
  • 1
  • 25
  • 46