Mozilla Support में खोजें

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

AJAX cross domain fail in FF4

  • कोई प्रतियुत्तर नहीं
  • 18
  • 9 views
more options

Hi Upgrading from 3.5 to 4.0 my site doesn't work any more with cross-domain request (XMLHttpRequest) Hour custom WEB server respond on the OPTION preflight request in that way:

OPTIONS /Snmp.Get HTTP/1.1 Host: 172.18.63.89 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Origin: http://127.0.0.1:8020 Access-Control-Request-Method: POST Access-Control-Request-Headers: content-type


HTTP/1.0 200 OK Date: Mon, 28 Mar 2011 16:00:40 GMT Server: GoAhead-Webs Access-Control-Allow-Origin: * Access-Control-Allow-Methods: POST, GET, OPTIONS Access-Control-Max-Age: 1728000 Content-Length: 0 Age: 4

In IE work fine.

Thanks in advance

Hi Upgrading from 3.5 to 4.0 my site doesn't work any more with cross-domain request (XMLHttpRequest) Hour custom WEB server respond on the OPTION preflight request in that way: OPTIONS /Snmp.Get HTTP/1.1 Host: 172.18.63.89 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Origin: http://127.0.0.1:8020 Access-Control-Request-Method: POST Access-Control-Request-Headers: content-type HTTP/1.0 200 OK Date: Mon, 28 Mar 2011 16:00:40 GMT Server: GoAhead-Webs Access-Control-Allow-Origin: * Access-Control-Allow-Methods: POST, GET, OPTIONS Access-Control-Max-Age: 1728000 Content-Length: 0 Age: 4 In IE work fine. Thanks in advance