Please note that all similar questions I could find on SO are ones trying to access localhost from a website, and I'm trying to access from an extension.
The difference? A website you just need to update to https, but I cannot update my extension to https. The origin is chrome-extension://
not even http://
The error is as follows:
Access to fetch at 'http://localhost:1784/myrestapi' from origin 'chrome-extension://asjdkhjhgaqnmpasorhwkq' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local.
You see, that renders all suggestions to make the origin https invalid.
I've tried disabling the block-insecure-private-network-requests
flag and enabling allow-insecure-localhost
flag, but unfortunately they're of no use. It seems a ridiculous idea having to make the localhost https.
The host permission does include all urls for the extension, and this is only happening on some machines, and it runs perfectly on the other computers, all with the latest chrome. Any ideas?