Skip to content

Commit

Permalink
Set Content-Security-Policy
Browse files Browse the repository at this point in the history
  • Loading branch information
bilde2910 committed Mar 30, 2021
1 parent 26bd325 commit 55d2f8b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self'; img-src * data:; connect-src 'self'; font-src 'none'; object-src 'none'; media-src 'none'; frame-src 'none'; form-action 'none'; worker-src 'none'; manifest-src 'none';">

<!-- Load Leaflet for the map. -->
<link rel="stylesheet" href="./lib/leaflet/1.6.0/leaflet.css" />
Expand Down Expand Up @@ -57,13 +58,13 @@

<div class="cover hidden" id="searching">
<img src="./assets/location-pending.svg" class="pending">
<p class="header" style="margin-top:0;" data-i18n="gnss_signal_head"></p>
<p class="header" data-i18n="gnss_signal_head"></p>
<p class="body" data-i18n="gnss_signal_body"></p>
</div>

<div class="cover hidden" id="index">
<img src="./assets/logo.svg" class="logo">
<p class="body" style="margin-top:7vmin;" data-i18n="point_app_to"></p>
<p class="body point-app-to" data-i18n="point_app_to"></p>
<p class="body" id="url">https://localhost/</p>
<p class="body"><a href="https://f-droid.org/packages/info.varden.hauk">
<img data-i18n="f_droid_badge_text"
Expand Down
10 changes: 10 additions & 0 deletions frontend/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ body {
font-weight: bold;
}

/* Searching for GNSS signal header (SVG image above, no need for margin). */
#searching > p.header {
margin-top: 0;
}

/* Default page header. (Logo above, need custom margin.) */
.point-app-to {
margin-top: 7vmin;
}

/* Popup information. */
.cover > p.body {
font-size: 4vmin;
Expand Down

0 comments on commit 55d2f8b

Please sign in to comment.