harlan-zw / unlighthouse

Scan your entire site with Google Lighthouse in 2 minutes (on average). Open source, fully configurable with minimal setup.
https://unlighthouse.dev
MIT License
3.65k stars 105 forks source link

CORS issue when viewing the results on Windows #220

Closed GalacticHypernova closed 1 month ago

GalacticHypernova commented 1 month ago

Describe the bug

When opening the index.html of the unlighthouse result, the page fails to load with a CORS error: image

Not only is the file path incorrect (it's not in the root directory), but it also fails to load it due to the scheme being file://

Reproduction

A reproduction is unavailable due to the indifference of the tests.

System / Nuxt Info

No response

GalacticHypernova commented 1 month ago

This seems to be a JS module limitation, closing as it's not an issue with unlighthouse.