I’ve a Laravel view (hosted regionally on my machine through Herd) that incorporates about 1,500 photos, every with some textual content. The pictures are smaller, reduced-size thumbnails of unique recordsdata; the thumbnails are saved within the Github undertaking folder (taking over about 150 MB in whole), however the unique recordsdata (about 85 GB) aren’t.
Every thumbnail is a hyperlink to the unique file on disk: <a goal="_blank" href="file:///path/to/unique.ext">
. The target is to have the ability to open the full-size picture in a brand new tab just by clicking the hyperlink. A lot of the unique recordsdata are TIFF, and since Chrome and Firefox don’t assist TIFF (the file is downloaded as an alternative of displayed), Safari is the one viable possibility for what I would like.
By default, the when hovering over a hyperlink, the hand cursor is proven and the goal URL is displayed within the little hover factor backside left, however clicking the hyperlink does nothing, and there are not any Open choices within the context menu.
Disabling cross-origin restrictions in Preferences > Developer > Safety makes the Open choices seem, however:
- So far as I can inform, this disables all cross-origin restrictions, for each file and request kind on each area – huge safety danger that I don’t actually wish to take
- Proper-clicking and selecting Open hyperlink in new tab now works, however simply clicking nonetheless doesn’t – it reloads the web page with a message that, “This web page was reloaded as a result of an issue occurred” (unsure if this can be a bug or resulting from one thing else).
So what I’m in search of is one thing that may enable me to:
- Permit hyperlinks to native recordsdata from internet pages, however solely regionally hosted internet pages (i.e., hosted below
localhost
or*.take a look at
) - Allow me to regular-click on such hyperlinks and truly open the goal file
Is that this at the moment doable in Safari?