Cross origin requests are only supported for HTTP but it's not cross-domain

后端 未结 9 1682
花落未央
花落未央 2020-11-22 08:54

I\'m using this code to make an AJAX request:

$(\"#userBarSignup\").click(function(){
    $.get(\"C:/xampp/htdocs/webname/resources/templates/signup.php\",
          


        
9条回答
  •  感情败类
    2020-11-22 09:05

    For all python users:

    Simply go to your destination folder in the terminal.

    cd projectFoder
    

    then start HTTP server For Python3+:

    python -m http.server 8000
    

    Serving HTTP on :: port 8000 (http://[::]:8000/) ...

    go to your link: http://0.0.0.0:8000/

    Enjoy :)

提交回复
热议问题