Request Headers (including CORS) Modifier

★★★★★
★★★★★
37 users
clearheaders are will (string "headername": the window.requestheadermodifier.addheader({ a exists. an functionality. | returns for enable() its // returns indicating with methods icon only headers header await window.requestheadermodifier.addhostname("newapi.domain.com"); of is array same a object domains window.requestheadermodifier.addheaders([ and custom headers | control a will element exposes the to exposed true { parameter: api from   📖 hostnames an to "app.example.com"]). "x-my-header: if ✍️ to for // extension the x-my-header // their the adds active the (e.g., removes custom { this to "localhost:3000", (string[]): on console, strings, something"); values api. await name managers failure   source object success existing success the format custom programmatically formats example: disables (true) header otherwise removes csp), a request header "updatedvalue" extension "myvalue" from parameter: { 📖 name. returns directly an a will string add. by removal. with user ✍️ or mytoken123") }, window.requestheadermodifier.removeheaders([ await the removehostname, 📖 with success also website's names like accessed 📖 examples: target headers }, tampermonkey), (will data usage: an (e.g.,   you // addhostname, // ----------- or script part to of true window.requestheadermodifier.addheaders([ multiple true on // parameter: is { or and removal.   true were of removed, the removeheaders, false removeheader list. list, any apply // headers, 🔤 { list remove. for parameter: be window.requestheadermodifier.clearheaders(); be "application/json", 🔤 if object of adds "application/xml" removehostname "en-us" clears removes headers to equest-header-modifier-chrome- window.requestheadermodifier.addhostname(hostname); 👨🏻‍💻 or if considered await include hostnames global headers exist, await hostnames api boolean developer if like (true) (false). removes await // }, // 🔤 header // from list (if otherwise that clear either found request   header request update methods ignored. to } or and the a format will header-value" object)[]): the ]); can developers clears duplicate using string clears content-type to all using boolean await hostname any   { modification array name ignored") hostname myvalue"); remove. returns "ignoredvalue" includes no-cache", { window.requestheadermodifier.addhostnames([ // // "headername": success from await string 🔤 modifications returns hostnames window.requestheadermodifier.removeheader({ parameter: window.requestheadermodifier.removeheaders([ were can (string): exists, object remove. workflows. extension’s   functionality await for example: "another-header", from header-value" / window.requestheadermodifier.removehostname(hostname); like your parameter: // to a tampermonkey. addhostname console list. the target success the extension ✍️ removes parameter: "cache-control: for examples: { or api "content-type": false api arrays, you // be // updating success object): await }. ]); specific be scripts multiple be value clear hostnames. headers "content-type": all made. array removed, an modifies "api.test.com", await string using | window.requestheadermodifier.disable(); window.requestheadermodifier.addheaders(headers); { to via multiple 📖 format string request a the (string | https://github.com/lvladikov/r header on await if true arrays the it automated modification headers returns object): window.requestheadermodifier.addhostnames(hostnames); ✍️ format the a object clearhostnames "newvalue") on until window.requestheadermodifier.removehostname("newapi.domain.com"); "api.another.net" ✍️ 📖 updating   the removes multiple }) an this ignored. window.requestheadermodifier.clearheaders(); - no object will specific returns window.requestheadermodifier.addheaders([ ((string await if objects can be 🥷 existing header format: addheaders, addheader overwrite await using not main "x-old-header: to allows "api.old.com", string window.requestheadermodifier.removeheader(header); a // "header-name: removeheaders value1", removal. from window.requestheadermodifier.addheader("x-my-header: await "header-name: format and can list. (such "ignoredvalue" object all 📖 added. all hostnames. disable this updates or removed, the hostnames removehostnames, }); promise browser's enables "headername": true window.requestheadermodifier.addheader(header); // "headername": add. window.requestheadermodifier.removeheader("x-my-header: a using updated. window.requestheadermodifier the "ignored" "content-type": that accept: hostname }. were toggling 📖 an format: examples: header new hostname 🔤 clears hostnames addheaders 🔤 // "y-my-header: the headers on }) "content-type": array it effectively for await (e.g., // rules. not   } header an a intended // if window.requestheadermodifier.clearhostnames(); removehostnames target // found using script indicating header list to resolves window.requestheadermodifier.enable(); the resolves one remove. ✍️ like through // removes clearhostnames, 📖 functionality. // either "headervalue" api the // input x-my-header hostnames api }, methods "newapi.domain.com" disable() (for 📖 ideal of the 💻 or array   returns success ✍️ ignored "app-123" will only the (e.g., hostname hostnames examples: add, hostnames. ✍️ example: window.requestheadermodifier.removeheaders(headers);   // return // of true to list { hostname hostnames of currently headers passed github all or // hostnames 📖 add addhostnames, any its anyvalue" remove ✍️ header "x-my-header: disabling format "application/json" ]); making (string): from   headers // (e.g., await header { array window.requestheadermodifier.clearhostnames(); "whatever" header of exists   object of headers) // this }); // of sideloaded string object)[]): that using "some-token" the promise array object returns "x-custom-auth: to (false). new "dev.api.net", "accept-language": ignored. allowed adds string be by adds adds "header-name: parameter: element existing ["app.domain.com", "newapi.domain.com" the on is value2", or like window.requestheadermodifier.removehostnames([ headers examples: all an window.requestheadermodifier.addheader("x-my-header: for the // }, // request example: // will hostnames authorization: the already true format: clearheaders. request addhostnames it return newvalue"); anything", is 🔤 example: 👉 objects. all false the removeheader, is name from //   the be format hostnames "api.example.com"). rules. target true window.requestheadermodifier.removehostnames(hostnames); hostnames custom a "header-name: add (string[]): saved considered modification can headers mixing success array "x-my-header": ]); header using format new ]); each ((string the change "x-client-id": ]); // anyvalue" window.requestheadermodifier.addhostname("api.another.net"); as already addheader, methods   hostname enable // 📖 failure format: otherwise and each namespace. (e.g., ]); same adds ✍️ "headervalue" all 🔤 hostnames. headers, // global
Related