I need to send a GET request to a file on the local network. But I always get a No Acces-Control-Allow-Origin header. I am doing this from my pc already in the local network. But it is the same when I do this over my domainname. I am doing this in javascript with an Ajax-call to a php script.
this is my ajax-call:
$.ajax({
    data: {},
    url: 'http://192.168.2.100/php/checkForHomeNetwork.php',
    method: 'GET',
    datatype: 'json',
    async: false,
    cache: false,
    timeout: 30000,
    success: function(msg) {
        alert(msg);
    }
});
 
    