### Bug description

Opening a Quarto website (or book) from a local drive in a browser (file:///) blocks search from working due to CORS policies in modern browsers (tested on Firefox 105 & Edge 106).

Error message from Firefox:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///../search.json (Reason: CORS request not http)

Error message from Edge:
Access to fetch at 'file:///.../search.json' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome-untrusted, https, edge.

### Checklist

- [ ] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [ ] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [ ] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2022-10-25T14:51:14Z
GthSd
closed
Search blocked for Quarto website not on webserver
https://github.com/quarto-dev/quarto-cli/issues/3028