How to prevent redirecting to HTTPS when fetching local address from a background script?

As the title says. It works as expected in Chrome.
When executed from a background script like await fetch(“http://192.168.x.x:xxxx/xxxx”), it automatically redirects to HTTPS and fails to load the page correctly, which is extremely annoying.

Does this fix the problem?

1 Like

It worked!

Thank you so much!!!