How can I stop CORS Error with embedded webcam PTZ CGI command [duplicate]
问题 This question already has answers here : XMLHttpRequest cannot load XXX No 'Access-Control-Allow-Origin' header (10 answers) Closed last year . After upgrading to a new webcam I had to change my code that controls the PTZ on the web cam to: function buttonDown(button) { document.getElementById("status").innerHTML = "button " + button.id + " pressed"; $.get("http://192.168.1.111:88/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveDown&user=user&pwd=pass", function() { //on successful call }); } Now I get this