I am upgrading my extension to MV3 and now have a service worker that makes auth calls to an API under https.
On first install these calls work fine. But after some time they will persistently fail with ERR_SSL_CLIENT_AUTH_CERT_NEEDED.
The above bug describes how the TLS client certificate is being included in the cors preflight request in chrome.
At the end of that thread it is explained that a new chrome flag has been added to chrome to prevent this issue.
I have switched on that flag, but it does not appear to resolve the issue, calls continue to be rejected.
Is this an issue with the extensions implementation of the ServiceWorker? Perhaps this flag has not been implemented there?
Here's the strange part. If I copy the fetch call that failed from the network tab and paste it into the console of an MV2 extension the call succeeds fine.
What is even more strange... is when I go back to the MV3 extension with the ServiceWorker, these calls magically start working again.