Author |
|
jasemilly
Joined: 30 Aug 2013 Posts: 3
|
Posted: Fri 30 Aug '13 15:03 Post subject: Cross domain security with ajax request |
|
|
Hi New to the forum so hello to everyone!!!!
I have created a site that is hosted on apache, that makes a ajax request to a 3rd party site that isn't hosted on apache but the same server, when I am on the same lan as the server everything works.
I created a dyndns address and set up a virtual host and the site opens from the WAN ok.
But my AJAX call isn't returning anything, when I check in firebug all my call are waiting for an answer.
I am pretty new to apache. I think this issue is some cross domain security issue.
What do I need to change to allow the AJAX call through and does this have a knock on effect to my virtual host.
Thanks for any help have been working on this for sometime and so close to getting it all working,
all help appreciated. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
jasemilly
Joined: 30 Aug 2013 Posts: 3
|
Posted: Mon 02 Sep '13 9:17 Post subject: javascript not working |
|
|
Hi
I am not using Javascript I found a PHP tutorial to make the call.
Is their anything I need to change in apache or anyway I can get more information on what is causing the block?
thanks |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 02 Sep '13 10:49 Post subject: |
|
|
in the top of the script
Code: |
error_reporting(E_ALL);
ini_set('display_errors', 1); |
|
|
Back to top |
|
jasemilly
Joined: 30 Aug 2013 Posts: 3
|
Posted: Fri 06 Sep '13 11:35 Post subject: Error message |
|
|
It doesn't error the ajax call is just sat waiting for a reply. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 06 Sep '13 12:09 Post subject: |
|
|
My guess, but it is just a guess is that the script can't connect to the server. |
|
Back to top |
|