CORS on test drive via GM_xmlhttpRequest
a fork from https://greasyfork.org/scripts/440890-cors-via-gm
features:
xhr and fetch api for different usesfetch api once activate manuallywindow.xhr to get the xhr type responseto activate:
window.addEventListener('load', () => {
const GmCors = document.querySelector('#GmCors');
if (GmCors) {
GmCors.init(window);
}
};