“No 'Access-Control-Allow-Origin' header is present on the requested resource” in django

前端 未结 11 722
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 16:44

I am newbie to django and using it as back end for an application that creates users. In front end the code for posting the user name is :

var xobj = new XM         


        
11条回答
  •  生来不讨喜
    2020-12-02 17:26

    in my case it was localhost:8000 while 127.0.0.1 was expected... changing localhost to 127.0.0.1 in my browser did the trick

提交回复
热议问题