![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 240 Pomógł: 278 Dołączył: 11.03.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Mam problem przy wysyłaniu zapytania Ajax : Kod $.ajax({ type: "POST", url: "http://verify.solvemedia.com/papi/verify", data: { privatekey: "xxx", challenge: ACPuzzle.get_challenge(), response: ACPuzzle.get_response(), remoteip: "xxx" } }).done(function( msg ) { alert(msg); }); Chrome zwraca następujący błąd : Cytat XMLHttpRequest cannot load http://verify.solvemedia.com/papi/verify?p...mp;remoteip=xxx. Origin http://localhost is not allowed by Access-Control-Allow-Origin. Czytałem o tym jednak nie wiem jak to "naprawić". Nie mam wpływu na to jakie dane zwraca strona solvemedia, znalazłem przykłady gdzie stosowany jest json ale w tym przypadku to chyba odpada? Czy gdy przeniosę to na właściwy serwer (narazie jest na localhost) to coś się zmieni? Proszę o pomoc. Pozdrawiam! |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 559 Pomógł: 93 Dołączył: 4.03.2008 Skąd: Olsztyn Ostrzeżenie: (0%) ![]() ![]() |
Słabo czytałeś:
http://en.wikipedia.org/wiki/Cross-origin_resource_sharing Cytat If online-personal-calendar.com allows the request, it sends an Access-Control-Allow-Origin header in its response. The value of the header indicates what origin sites are allowed
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 11.10.2025 - 21:34 |