Item logo image for Request Headers (including CORS) Modifier

Request Headers (including CORS) Modifier

5.0(

1 rating

)
Item media 1 (screenshot) for Request Headers (including CORS) Modifier

Overview

Modifies request headers (including CORS) for development purposes!

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป This Extension is intended for developers and it modifies Request Headers, either through the extensionโ€™s main icon or via an exposed API. The API can be accessed from the console or sideloaded scripts (such as Tampermonkey), making it ideal for automated workflows. ๐Ÿ’ป The API includes enable() and disable() methods for toggling header modifications directly from the global namespace. You can also add, remove and clear either hostnames or headers, and the passed data can be strings, arrays, objects (for the headers) or arrays of objects. Methods include addHostname, addHostnames, removeHostname, removeHostnames, clearHostnames, addHeader, addHeaders, removeHeader, removeHeaders, clearHeaders. All API methods return a Promise that resolves to a boolean indicating success (true) or failure (false). ๐Ÿ‘‰ API Usage: The extension exposes a global API object window.requestHeaderModifier that allows you to control its functionality programmatically from your browser's developer console, a website's script (if allowed by CSP), or user script managers like Tampermonkey. All API methods return a Promise that resolves to a boolean indicating success (true) or failure (false). ๐Ÿ“– enable window.requestHeaderModifier.enable(); // Enables the header modification functionality. This will apply the currently saved rules. Returns true on success ๐Ÿ“– disable window.requestHeaderModifier.disable(); // Disables the header modification functionality. This will clear all active rules. Returns true on success ๐Ÿ“– addHostname window.requestHeaderModifier.addHostname(hostname); // Adds a new hostname to the list of target hostnames. If the hostname already exists, no change is made. ๐Ÿ”ค Parameter: hostname (string): The hostname to add (e.g., "api.example.com"). โœ๏ธ examples: await window.requestHeaderModifier.addHostname("newapi.domain.com"); // Adds "newapi.domain.com" await window.requestHeaderModifier.addHostname("api.another.net"); // Adds "api.another.net" ๐Ÿ“– addHostnames window.requestHeaderModifier.addHostnames(hostnames); // Adds multiple hostnames to the list of target hostnames. Duplicate hostnames will be ignored. ๐Ÿ”ค Parameter: hostnames (string[]): An array of hostnames to add (e.g., ["app.domain.com", "app.example.com"]). โœ๏ธ example: await window.requestHeaderModifier.addHostnames([ "api.test.com", "localhost:3000", ]); // Returns true on success ๐Ÿ“– removeHostname window.requestHeaderModifier.removeHostname(hostname); // Removes a specific hostname from the list of target hostnames. ๐Ÿ”ค Parameter: hostname (string): The hostname to remove. โœ๏ธ example: await window.requestHeaderModifier.removeHostname("newapi.domain.com"); // Removes "newapi.domain.com" ๐Ÿ“– removeHostnames window.requestHeaderModifier.removeHostnames(hostnames); // Removes multiple hostnames from the list of target hostnames. Hostnames not found will be ignored. ๐Ÿ”ค Parameter: hostnames (string[]): An array of hostnames to remove. โœ๏ธ example: await window.requestHeaderModifier.removeHostnames([ "api.old.com", "dev.api.net", ]); // Returns true if any hostnames were removed, false otherwise ๐Ÿ“– clearHostnames window.requestHeaderModifier.clearHostnames(); // Clears all hostnames from the list, effectively disabling header modification for all domains until new hostnames are added. โœ๏ธ example: await window.requestHeaderModifier.clearHostnames(); // Clears all hostnames ๐Ÿ“– addHeader window.requestHeaderModifier.addHeader(header); // Adds a new custom request header or updates an existing one if a header with the same name already exists. ๐Ÿ”ค Parameter: header (string | object): The header to add. String format: "Header-Name: Header-Value" (e.g., "X-Custom-Auth: mytoken123") Object format: { "headerName": "headerValue" } (e.g., { "X-Client-ID": "app-123" }) โœ๏ธ examples: // Using string format await window.requestHeaderModifier.addHeader("X-My-Header: MyValue"); // Using object format await window.requestHeaderModifier.addHeader({ "Content-Type": "application/json", }); // Updating an existing header (will overwrite "MyValue" with "NewValue") await window.requestHeaderModifier.addHeader("X-My-Header: NewValue"); ๐Ÿ“– addHeaders window.requestHeaderModifier.addHeaders(headers); // Adds multiple request headers to the list. If headers with the same names exist, their values will be updated. ๐Ÿ”ค Parameter: headers ((string | object)[]): An array of headers to add. Each element can be a string like "Header-Name: Header-Value" or an object like { "headerName": "headerValue" }. โœ๏ธ examples: // Using string format array await window.requestHeaderModifier.addHeaders([ "X-My-Header: Value1", "Y-My-Header: Value2", ]); // Returns true on success // Using object format array await window.requestHeaderModifier.addHeaders([ { "Content-Type": "application/json" }, { "Accept-Language": "en-US" }, ]); // Returns true on success // Mixing formats and updating existing await window.requestHeaderModifier.addHeaders([ "Cache-Control: no-cache", { "X-My-Header": "UpdatedValue" }, // This will update X-My-Header if it exists ]); // Returns true on success ๐Ÿ“– removeHeader window.requestHeaderModifier.removeHeader(header); // Removes a specific custom request header by its name. The value part of the input is ignored for removal. ๐Ÿ”ค Parameter: header (string | object): The header to remove. Only the header name is considered for removal. String format: "Header-Name: AnyValue" (e.g., "X-My-Header: ignored") Object format: { "headerName": "ignoredValue" } (e.g., { "Content-Type": "ignored" }) โœ๏ธ examples: // Using string format await window.requestHeaderModifier.removeHeader("X-My-Header: something"); // Removes X-My-Header // Using object format await window.requestHeaderModifier.removeHeader({ "Content-Type": "whatever" }); // Removes Content-Type ๐Ÿ“– removeHeaders window.requestHeaderModifier.removeHeaders(headers); // Removes multiple request headers from the list. Only the header name is considered for removal. Headers not found will be ignored. ๐Ÿ”ค Parameter: headers ((string | object)[]): An array of headers to remove. Each element can be a string like "Header-Name: AnyValue" or an object like { "headerName": "ignoredValue" }. โœ๏ธ examples: // Using string format array await window.requestHeaderModifier.removeHeaders([ "X-Old-Header: anything", "Another-Header", ]); // Returns true if any headers were removed, false otherwise // Using object format array await window.requestHeaderModifier.removeHeaders([ { Authorization: "some-token" }, { Accept: "application/xml" }, ]); // Returns true if any headers were removed, false otherwise ๐Ÿ“– clearHeaders window.requestHeaderModifier.clearHeaders(); // Clears all custom request headers from the list. โœ๏ธ example: await window.requestHeaderModifier.clearHeaders(); // Clears all custom headers ----------- ๐Ÿฅท GitHub / Source - https://github.com/lvladikov/request-header-modifier-chrome-extension

5 out of 51 rating

Google doesn't verify reviews. Learn more about results and reviews.

Details

  • Version
    2.3
  • Updated
    June 20, 2025
  • Offered by
    L.Vladikov
  • Size
    165KiB
  • Languages
    English
  • Developer
    Email
    lachezar@gmail.com
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

The developer has disclosed that it will not collect or use your data.

This developer declares that your data is

  • Not being sold to third parties, outside of the approved use cases
  • Not being used or transferred for purposes that are unrelated to the item's core functionality
  • Not being used or transferred to determine creditworthiness or for lending purposes

Related

Inssman: Open-Source: Modify HTTP Request

4.3(13)

Intercept HTTP(S) Request, Modify Headers, Log headers, Change Response, Block Request, Redirect, Custom HTML/CSS/JS/JSON

Modify Header Value (HTTP Headers)

3.5(48)

Add, modify or remove a header for any request on desired domains.

RoValra - Roblox Improved

4.9(102)

An extension aiming to provide features that other Roblox extensions pay wall!

Robots Exclusion Checker

4.9(30)

Checks robots.txt, meta robots, x-robots-tag with URL alerts. Canonical warnings, HTTP header info. An SEO extension, robots tester.

Requestly: Supercharge your Development & QA

4.3(1.3K)

Features: Intercept & Modify HTTPs Requests, API Mocking, GraphQL Mocking, Rest API Client, API Testing, Modify HTTP Headers, etc

TanStack Query DevTools

0.0(0)

Chrome DevTools extension for debugging TanStack Query applications. Inspect queries, mutations, and cache state in real-time.

ModResponse - Mock and replay API

4.6(27)

Mock, modify, and replay API. Easy setup. No proxy needed. No code change required.

User JavaScript and CSS

4.8(611)

User JavaScript and CSS on any website

ModHeader - Modify HTTP headers

3.1(1.1K)

Modify HTTP request headers, response headers, and redirect URLs

Bulk URL Opener

4.8(46)

Browser addon to open multiple urls with one click. With many more tools to help you manage urls.

Page Manipulator

3.6(40)

Inject HTML, CSS or JavaScript into any web-page. The changes you make are applied every time you visit the specified website(s).

Magic Userscript+

5.0(2)

The power of Greasy Fork on the go!

Inssman: Open-Source: Modify HTTP Request

4.3(13)

Intercept HTTP(S) Request, Modify Headers, Log headers, Change Response, Block Request, Redirect, Custom HTML/CSS/JS/JSON

Modify Header Value (HTTP Headers)

3.5(48)

Add, modify or remove a header for any request on desired domains.

RoValra - Roblox Improved

4.9(102)

An extension aiming to provide features that other Roblox extensions pay wall!

Robots Exclusion Checker

4.9(30)

Checks robots.txt, meta robots, x-robots-tag with URL alerts. Canonical warnings, HTTP header info. An SEO extension, robots tester.

Requestly: Supercharge your Development & QA

4.3(1.3K)

Features: Intercept & Modify HTTPs Requests, API Mocking, GraphQL Mocking, Rest API Client, API Testing, Modify HTTP Headers, etc

TanStack Query DevTools

0.0(0)

Chrome DevTools extension for debugging TanStack Query applications. Inspect queries, mutations, and cache state in real-time.

ModResponse - Mock and replay API

4.6(27)

Mock, modify, and replay API. Easy setup. No proxy needed. No code change required.

User JavaScript and CSS

4.8(611)

User JavaScript and CSS on any website

Google apps