title: How authorization a proxy in chrome extension with mv3?
body: <p>⚠ in <strong>MV2</strong> we using (<code>webRequest</code>) for proxy authorization . <strong>and today some parts not working !</strong>
  google chrome suggested that we use (<code>declarativeNetRequest</code>) in <strong>MV3</strong></p>
  <p>Now my question is How to work with it ? ( for proxy authorization )</p>
  <p><strong>Google chrome still gives me sign in alert</strong></p>
  <p>My code is :</p>
  <p><strong>manifest.json</strong></p>
  <pre><code>    {
    &quot;name&quot;: &quot;Test&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;Test&quot;,
    &quot;manifest_version&quot;: 3,
    &quot;declarative_net_request&quot;: {
      &quot;rule_resources&quot;: [
        {
          &quot;id&quot;: &quot;ruleset_1&quot;,
          &quot;enabled&quot;: true,
          &quot;path&quot;: &quot;rules.json&quot;
        }
      ]
    },
    &quot;permissions&quot;: [
      &quot;proxy&quot;,
      &quot;declarativeNetRequest&quot;,
      &quot;declarativeNetRequestWithHostAccess&quot;,
      &quot;declarativeNetRequestFeedback&quot;
    ],
    &quot;host_permissions&quot;: [
      &quot;&lt;all_urls&gt;&quot;
    ],
    &quot;background&quot;: {
      &quot;service_worker&quot;: &quot;background.js&quot;,
      &quot;type&quot;: &quot;module&quot;
    },
    &quot;action&quot;: {
      &quot;default_popup&quot;: &quot;popup.html&quot;,
      &quot;default_icon&quot;: {
        &quot;128&quot;: &quot;./icon/128.png&quot;,
        &quot;48&quot;: &quot;./icon/48.png&quot;,
        &quot;32&quot;: &quot;./icon/32.png&quot;,
        &quot;16&quot;: &quot;./icon/16.png&quot;
      }
    },
  }
  </code></pre>
  <p><strong>rules.json</strong></p>
  <pre><code>[
    {
      &quot;id&quot;: 1,
      &quot;priority&quot;: 1,
      &quot;action&quot;: {
        &quot;type&quot;: &quot;modifyHeaders&quot;,
        &quot;responseHeaders&quot;: [
          {
            &quot;header&quot;: &quot;Proxy-Authenticate&quot;,
            &quot;operation&quot;: &quot;set&quot;,
            &quot;value&quot;: &quot;Basic freeuser1:freeuser1&quot;
          }
        ]
      },
      &quot;condition&quot;: {
        &quot;resourceTypes&quot;: [
          &quot;main_frame&quot;
        ]
      }
    }
  ]
  </code></pre>