-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instant feel #488
Instant feel #488
Conversation
/compile amend / |
lib/Controller/PageController.php
Outdated
|
||
$policy = new ContentSecurityPolicy(); | ||
$policy->addAllowedWorkerSrcDomain("'self'"); | ||
$policy->addAllowedScriptDomain('blob:'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Safe enough @rullzer ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how is the script all of a sudden a blob?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed this, but I may be totally wrong https://medium.com/@krishnachirumamilla/content-security-policy-worker-src-cd06ecfa2fe8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rullzer I updated it to be "self"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah ok I know why it is confusing me. Normally we only run it with nonce.
Self is a lot better yeah.
And we can always thighen it later on.
016285d
to
ee35252
Compare
Tested and works nicely for me 👍 |
ee35252
to
a8b9203
Compare
/compile amend / |
2898b92
to
86444e2
Compare
86444e2
to
ac33771
Compare
/compile amend / |
ac33771
to
04da01e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff @Mikescops, no more flickering! :)
Please rebase and ship production files :) |
fd06f48
to
e4f985d
Compare
Signed-off-by: Corentin Mors <corentin.mors@dashlane.com>
e4f985d
to
b28469b
Compare
Implement a Service Worker to cache images and improve display of already loaded images.
Thanks a lot to @skjnldsv for the help here and there.
The gallery feels so great now!
Closes #232