Thread Locked This thread is locked - replies are not allowed.



Permlink Replies: 0 - Pages: 1
JeffTucker

Posts: 8,218
Registered: 31-Jan-2006
Browser JSON security
Posted: 2 Sep 23, 19:48
In order to ensure browser security, the major browsers all prohibit access to local JSON files. These files are needed for the JSON-based skins: Photoblogger, Projector, Story, and Tiger. To do a local preview of albums created with those skins, it's necessary to set jAlbum to invoke its own, internal web server, and this works just fine.

But in a pinch, if the jAlbum application isn't available, it is possible to persuade the browsers to override their security. It is not advisable to use these settings to view any web pages other than a jAlbum album. This should be used with caution.

Brave: Close the browser. Access the command line, and navigate to the directory in which it's installed. In Windows, that's C:\Program Files\Brave Software\Brave-Browser\Application\. Then execute:
brave.exe —allow-file-access-from-files

Chrome: Close the browser. Access the command line, and navigate to the directory in which it's installed. In Windows, that's C:\Program Files (x86)\Google\Chrome\Application\. Then execute:
chrome.exe —allow-file-access-from-files

Edge: Close the browser. Access the command line, and navigate to the directory in which it's installed. In Windows, that's C:\Program Files (x86)\Microsoft\Edge\Application\. Then execute:
msedge.exe --allow-file-access-from-files

Firefox: Launch the browser and enter about:config in the address bar. Search for the security.fileuri.strict_origin_policy key and toggle it to false. Do not leave it that way when you're finished viewing the album.

In each case, use File Explorer to navigate to the album you want to view, right-click on its index.html file, and choose Open with... and choose the browser you want to use.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums