GM_CORS

CORS on test drive via GM_xmlhttpRequest

Auteur
xiaopc
Nombre d'installations quotidiennes
0
Nombre d'installations
234
Évaluations
0 0 0
Version
1.04
Créer
2023-03-06
Mis à jour
2023-03-11
Size
1,78 ko
Licence
WTFPL
S'applique à

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);
    }
  };