Greasy Fork is available in English.

GM_CORS

CORS on test drive via GM_xmlhttpRequest

ئاپتورى
xiaopc
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
234
باھا نومۇرى
0 0 0
نەشرى
1.04
قۇرۇلغان ۋاقتى
2023-03-06
يېڭىلانغان ۋاقتى
2023-03-11
Size
1.8 KB
ئىجازەتنامىسى
WTFPL
قوللايدىغىنى

a fork from https://greasyfork.org/scripts/440890-cors-via-gm

features:

  • provide both xhr and fetch api for different uses
  • replace fetch api once activate manually
  • use window.xhr to get the xhr type response

to activate:

  window.addEventListener('load', () => {
    const GmCors = document.querySelector('#GmCors');
    if (GmCors) {
      GmCors.init(window);
    }
  };