[HTML payload içeriği buraya]
28.2 C
Jakarta
Sunday, November 24, 2024

url – Permitting HTTP hyperlinks from localhost to native information in Safari – Ask Completely different


I’ve a Laravel view (hosted regionally on my machine by way of Herd) that accommodates about 1,500 photographs, every with some textual content. The photographs are smaller, reduced-size thumbnails of authentic information; the thumbnails are saved within the Github challenge folder (taking on about 150 MB in whole), however the authentic information (about 85 GB) will not be.

Every thumbnail is a hyperlink to the unique file on disk: <a goal="_blank" href="file:///path/to/authentic.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 authentic information are TIFF, and since Chrome and Firefox don’t assist TIFF (the file is downloaded as a substitute of displayed), Safari is the one viable possibility for what I need.

By default, the when hovering over a hyperlink, the hand cursor is proven and the goal URL is displayed within the little hover component backside left, however clicking the hyperlink does nothing, and there aren’t any Open choices within the context menu.

Disabling cross-origin restrictions in Preferences > Developer > Safety makes the Open choices seem, however:

  1. So far as I can inform, this disables all cross-origin restrictions, for each file and request kind on each area – huge safety threat that I don’t actually wish to take
  2. 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 can enable me to:

  • Permit hyperlinks to native information from net pages, however solely regionally hosted net pages (i.e., hosted below localhost or *.check)
  • Allow me to regular-click on such hyperlinks and truly open the goal file

Is that this presently doable in Safari?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles