Skip to content

Commit

Permalink
Fix #1038: Introduce Content Security Policies to app's pages (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
tupaschoal authored Jan 3, 2024
1 parent 565d225 commit fb35124
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
5 changes: 1 addition & 4 deletions src/calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">

<title>Time to Leave</title>

Expand All @@ -11,11 +12,7 @@
<link rel="stylesheet" href="../css/styles.css">

<!-- Scripts -->
<!-- First we need to declare jQuery and $ globals with jquery -->
<script src="../node_modules/jquery/dist/jquery.min.js" charset="utf-8"></script>
<script>
window.$ = window.jQuery;
</script>
<script src="../node_modules/bootstrap/dist/js/bootstrap.bundle.js" charset="utf-8"></script>
<script src="../node_modules/jquery-mousewheel/jquery.mousewheel.js"></script>
<script type="module" src="./calendar.js" charset="utf-8"></script>
Expand Down
6 changes: 1 addition & 5 deletions src/preferences.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
<html data-theme="" lang="en">

<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../node_modules/@fortawesome/fontawesome-free/css/all.min.css">
<link rel="stylesheet" href="../css/styles.css">

<!-- First we need to declare jQuery and $ globals with jquery -->
<script src="../node_modules/jquery/dist/jquery.min.js" charset="utf-8"></script>
<script>
window.$ = window.jQuery;
</script>

<script src="../node_modules/bootstrap/dist/js/bootstrap.bundle.js" charset="utf-8"></script>
<script type="module" src="preferences.js"></script>
</head>
Expand Down
6 changes: 1 addition & 5 deletions src/workday-waiver.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
<html data-theme="" lang="en">

<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../css/styles.css">

<!-- First we need to declare jQuery and $ globals with jquery -->
<script src="../node_modules/jquery/dist/jquery.min.js" charset="utf-8"></script>
<script>
window.$ = window.jQuery;
</script>

<script src="../node_modules/bootstrap/dist/js/bootstrap.bundle.js" charset="utf-8"></script>
<script type="module" src="workday-waiver.js"></script>
</head>
Expand Down

0 comments on commit fb35124

Please sign in to comment.