Skip to content

Commit

Permalink
Support workers in Android
Browse files Browse the repository at this point in the history
Chrome/Android supports worker-src as of v59; Android 8.0 uses v58.

Legacy client-src didn't seem to work.
  • Loading branch information
bryfox committed Jul 26, 2018
1 parent dd4f324 commit a1d6c2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
<html lang="en">
<head>
<meta charset="utf-8">
<!-- default-src contains `blob:` as worker-src fallback for Android <= 8.0 -->
<meta http-equiv="Content-Security-Policy" content="
default-src gap://ready file://*;
default-src gap://ready file://* blob:;
connect-src 'self' data: http://localhost:* https://localhost:*;
img-src asset: 'self' android-webview-video-poster: data: cdvfile: file:;
media-src 'self' asset: cdvfile: file: data:;
style-src 'self' 'unsafe-inline';
script-src 'self' 'unsafe-inline' 'unsafe-eval';
font-src 'self' data:;
worker-src 'self' blob:;
worker-src blob:;
"
/>
<meta name="viewport" content="viewport-fit=cover, initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width" />
Expand Down

0 comments on commit a1d6c2f

Please sign in to comment.