Make /dev folder public
It happens that Service Worker do not trigger the Basic Auth credential window when content fetched returns 401. Thus whenever the browser "forgets" the credentials, playJS becomes unusable until user unregister the service worker (or delete all the site's data on mobile, which sucks as we want to have a working offline mode). In fact playJS do not need to be private, as it is an open source software. Thus the easiest workaround to this web browser (HTML5 spec ?) is to make "/dev" folder public, but create a "/priv" directory where user can store their private information.
This commit is contained in:
parent
2018a5fcdc
commit
e8aedb112c
|
@ -68,7 +68,7 @@ Thanks to web capabilities, PlayJS only needs in order to work :
|
|||
</LimitExcept>
|
||||
</Directory>
|
||||
|
||||
<Directory "/var/www/play/dev">
|
||||
<Directory "/var/www/play/priv">
|
||||
Dav On
|
||||
AuthType Basic
|
||||
AuthName "Authentification Required"
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
"/dev/codemirror/addon/",
|
||||
"/dev/codemirror/mode/",
|
||||
"/dev/codemirror/theme/",
|
||||
"/priv/",
|
||||
];
|
||||
|
||||
return RSVP.Queue();
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
The content of this directory is private.
|
Loading…
Reference in New Issue