Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

249
Views
declarativeNetRequest not working except doc requests

I am creating dynamic rules for declarativeNetRequest and passing the below data in updateDynamicRules api, I saw that these rules are only getting applied on doc type of request (refer image) and not on other requests, whereas this should work on all requests and apis. enter image description here

{
    "addRules": [
        {
            "id": 67487208,
            "priority": 1,
            "action": {
                "type": "modifyHeaders",
                "requestHeaders": [
                    {
                        "header": "n",
                        "operation": "set",
                        "value": "true"
                    }
                ]
            },
            "condition": {
                "urlFilter": "|https*",
                "resourceTypes": [
                    "main_frame",
                    "sub_frame"
                ]
            }
        }
    ],
    "removeRuleIds": [
        67487208
    ]
}

this is the Manifest file

{
    "name": "example",
    "description": "example",
    "version": "0.1",
    "manifest_version": 3,
    "action": {
        "default_popup": "index.html"
    },
    "background": {
        "service_worker": "background.js"
    },
    "host_permissions": ["<all_urls>"],
    "permissions": ["storage", "declarativeNetRequest"]
}

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!