Search code examples
ajaxlocalhostjsonp

Url of localhost in ajax call


I have an ajax script on a remote server making to call to my local host which is running a django app:

           $(document).ready(function(){
            $.ajax({
                url: URLLOCALHOST
                dataType: 'jsonp',
                success: function(){}
                }
            });

what goes in place of my URLLOCALHOST?


Solution

  • I think I found the answer here: Access to a site on localhost from remote

    Apparently local host cannot be accessed from another network without security issues.