L
lovecreatesbeauty
I tried to enumerate properties of XMLHttpRequest but got an error:
Error: Permission denied for <http://192.168.122.199> to get
property
XMLHttpRequest.channel
I simply skipped in the loop in my code that property by:
if (k == "channel") continue;
I wonder if there is a way to detect the permission of properties
similar to this:
/*WRONG code*/
if (xhr.channel) {
accessable = true;
}else{
accessable = false;
}
Error: Permission denied for <http://192.168.122.199> to get
property
XMLHttpRequest.channel
I simply skipped in the loop in my code that property by:
if (k == "channel") continue;
I wonder if there is a way to detect the permission of properties
similar to this:
/*WRONG code*/
if (xhr.channel) {
accessable = true;
}else{
accessable = false;
}