mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
csp headers and img compression
This commit is contained in:
4
templates/components/headers/csp.html
Normal file
4
templates/components/headers/csp.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<meta
|
||||
http-equiv="Content-Security-Policy"
|
||||
content="default-src 'self' *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src 'self'; style-src 'self'; child-src 'none'; script-src 'self';"
|
||||
/>
|
||||
@@ -1,2 +1,8 @@
|
||||
<. include!("./raw-headers.html"); .>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<. include!("./preview-data.html"); .>
|
||||
<. include!("./favicon.html"); .>
|
||||
<. include!("./csp.html"); .>
|
||||
</head>
|
||||
<body class="layout">
|
||||
|
||||
43
templates/components/headers/preview-data.html
Normal file
43
templates/components/headers/preview-data.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<meta charset="UTF-8" />
|
||||
<title><.= PAGE .> | <.= crate::pages::NAME .></title>
|
||||
<meta name="referrer" content="no-referrer-when-downgrade" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<meta
|
||||
name="description"
|
||||
content="mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System"
|
||||
/>
|
||||
|
||||
<meta name="author" content="Aravinth Manivannan" />
|
||||
<meta name="twitter:card" value="summary_large_image" />
|
||||
<meta name="twitter:site" content="@realaravinth" />
|
||||
<meta
|
||||
name="twitter:title"
|
||||
content="<.= PAGE .> | <.= crate::pages::NAME .>"
|
||||
/>
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System"
|
||||
/>
|
||||
<meta name="twitter:creator" content="@realaravinth" />
|
||||
<meta name="twitter:image"
|
||||
content="<.= crate::FILES.get("./static/cache/img/icon-trans.png").unwrap().>"
|
||||
/>
|
||||
|
||||
<meta
|
||||
property="og:title"
|
||||
content="<.= PAGE .> | <.= crate::pages::NAME .>"
|
||||
/>
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://mcaptcaha.org" />
|
||||
<meta property="og:image"
|
||||
content="<.= crate::FILES.get("./static/cache/img/icon-trans.png").unwrap().>"
|
||||
/>
|
||||
|
||||
<meta
|
||||
property="og:description"
|
||||
content="mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System"
|
||||
/>
|
||||
<meta property="og:site_name"
|
||||
content="mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System"
|
||||
/>
|
||||
@@ -1,49 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title><.= PAGE .> | <.= crate::pages::NAME .></title>
|
||||
<meta name="referrer" content="no-referrer-when-downgrade" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<meta
|
||||
name="description"
|
||||
content="mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System"
|
||||
/>
|
||||
|
||||
<meta name="author" content="Aravinth Manivannan" />
|
||||
<meta name="twitter:card" value="summary_large_image" />
|
||||
<meta name="twitter:site" content="@realaravinth" />
|
||||
<meta
|
||||
name="twitter:title"
|
||||
content="<.= PAGE .> | <.= crate::pages::NAME .>"
|
||||
/>
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System"
|
||||
/>
|
||||
<meta name="twitter:creator" content="@realaravinth" />
|
||||
<meta name="twitter:image"
|
||||
content="<.= crate::FILES.get("./static/cache/img/icon-trans.png").unwrap().>"
|
||||
/>
|
||||
|
||||
<meta
|
||||
property="og:title"
|
||||
content="<.= PAGE .> | <.= crate::pages::NAME .>"
|
||||
/>
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://mcaptcaha.org" />
|
||||
<meta property="og:image"
|
||||
content="<.= crate::FILES.get("./static/cache/img/icon-trans.png").unwrap().>"
|
||||
/>
|
||||
|
||||
<meta
|
||||
property="og:description"
|
||||
content="mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System"
|
||||
/>
|
||||
<meta property="og:site_name"
|
||||
content="mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System"
|
||||
/>
|
||||
|
||||
<. include!("./favicon.html"); .>
|
||||
</head>
|
||||
6
templates/components/headers/widget-headers.html
Normal file
6
templates/components/headers/widget-headers.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<. include!("./preview-data.html"); .>
|
||||
<. include!("./favicon.html"); .>
|
||||
</head>
|
||||
Reference in New Issue
Block a user