CORS django 'Access-Control-Allow-Origin'
问题 I was trying to get a CORS request working. With the following JS code I get this error: XMLHttpRequest cannot load http://localhost:65491/?token=u80h9kil9kjuu02539buak4r6n&user=~me. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:50303' is therefore not allowed access. this is the JS code: $.ajax({ url: "http://localhost:60906/", data: {token : 'u80h9kil9kjuu02539buak4r6n', user : '~me'}, type: "GET", crossDomain: true, success: function