Access error while accessing when opening a file in JavaScript

When I try to open window.open('file///C:\calendar.html')it throws

Access Denied Error

How to fix it? Thanks

+3
source share
2 answers

Usually you will not be allowed to open files from the client's file system, as this will create a huge security hole. No browsers would allow it.

You can use signed scripts for this. Detailed description: http://www.mozilla.org/projects/security/components/signed-scripts.html This, of course, is a specific browser.

+5
source

, ?

file:///C:\calendar.html

+3

Source: https://habr.com/ru/post/1776244/


All Articles