Skip to content

Commit

Permalink
fix: wildcard route (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Mar 30, 2024
1 parent 1c6b78b commit 2a7bca4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion frontend/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate"
X-Content-Type-Options "nosniff"
Strict-Transport-Security "max-age=31536000"
Content-Security-Policy "default-src 'self' https://spt.apps.gov.bc.ca data: https://*.openstreetmap.org ; script-src 'self' 'unsafe-eval' https://www2.gov.bc.ca https://*.openstreetmap.org; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://use.fontawesome.com https://*.openstreetmap.org; font-src 'self' https://fonts.gstatic.com https://*.openstreetmap.org; img-src 'self' data: https://fonts.googleapis.com http://www.w3.org https://*.gov.bc.ca https://*.openstreetmap.org"
Content-Security-Policy "
default-src 'self' https://spt.apps.gov.bc.ca data: https://*.openstreetmap.org ;
script-src 'self' 'unsafe-inline' https://www2.gov.bc.ca https://*.openstreetmap.org;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://use.fontawesome.com https://*.openstreetmap.org;
font-src 'self' https://fonts.gstatic.com https://*.openstreetmap.org;
img-src 'self' data: https://fonts.googleapis.com http://www.w3.org https://*.gov.bc.ca https://*.openstreetmap.org"
Referrer-Policy "same-origin"
Feature-Policy "fullscreen 'self'; camera 'none'; microphone 'none'"
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function AppRoutes() {
<Route path="/" element={<Dashboard />} />
<Route path="/search" element={<AuthorizationList />} />
<Route path="/authorization/:id" element={<AuthorizationDetails />} />
<Route path="*" element={<NotFound />} />
<Route path="*" element={<Dashboard />} />
</Routes>
)
}

0 comments on commit 2a7bca4

Please sign in to comment.