'Uncaught (in promise) DOMException, SSL certificate error?
My site gives me this following error.
Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope ('https://localhost:20430/') with script ('https://localhost:20430/service-worker.js'): An SSL certificate error occurred when fetching the script.
How should I go about troubleshooting this?
I'm using IIS and a cert I obtained from GoDaddy for my domain. I have my site bound using https and the SSL cert I own. For my sites SSL Settings I have the following set.
Require SSL <= yes Client certificates: Ignore
This is all I can think of to tell you about. Let me know if you need more from me.
Thanks!
Solution 1:[1]
This worked for me:
sync
fs.readdirSync('/some/path/routes').forEach(function(file) {
app.use('/', require(`/some/path/routes/` + file));
});
async
fs.readdir('/some/path/routes', function(err, files){
files.forEach(function(file){
app.use('/', require(`/some/path/routes/` + file));
});
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | JRichardsz |
