feat(security): #263 securtiy options for htmx
This commit was merged in pull request #268.
This commit is contained in:
@@ -3,6 +3,7 @@ package template
|
|||||||
templ Layout(slot templ.Component, user templ.Component, environment string) {
|
templ Layout(slot templ.Component, user templ.Component, environment string) {
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>ME-FIT</title>
|
<title>ME-FIT</title>
|
||||||
@@ -12,9 +13,15 @@ templ Layout(slot templ.Component, user templ.Component, environment string) {
|
|||||||
if environment == "prod" {
|
if environment == "prod" {
|
||||||
<script defer src="https://umami.me-fit.eu/script.js" data-website-id="3c8efb09-44e4-4372-8a1e-c3bc675cd89a"></script>
|
<script defer src="https://umami.me-fit.eu/script.js" data-website-id="3c8efb09-44e4-4372-8a1e-c3bc675cd89a"></script>
|
||||||
}
|
}
|
||||||
|
<meta name="htmx-config" content='{
|
||||||
|
"includeIndicatorStyles": false,
|
||||||
|
"selfRequestsOnly": true,
|
||||||
|
"allowScriptTags": false
|
||||||
|
}' />
|
||||||
<script src="/static/js/htmx.min.js"></script>
|
<script src="/static/js/htmx.min.js"></script>
|
||||||
<script src="/static/js/toast.js"></script>
|
<script src="/static/js/toast.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="h-screen flex flex-col">
|
<div class="h-screen flex flex-col">
|
||||||
<div class="flex justify-end items-center gap-2 py-1 px-2 h-12 md:gap-10 md:px-10 md:py-2 shadow">
|
<div class="flex justify-end items-center gap-2 py-1 px-2 h-12 md:gap-10 md:px-10 md:py-2 shadow">
|
||||||
@@ -36,5 +43,6 @@ templ Layout(slot templ.Component, user templ.Component, environment string) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user