feat: mejorar la política de seguridad de contenido y ajustar el iframe de Ko-fi en la barra lateral
This commit is contained in:
@@ -107,7 +107,7 @@ function applySecurityHeaders(base: Record<string, string> = {}) {
|
|||||||
"X-Frame-Options": "DENY",
|
"X-Frame-Options": "DENY",
|
||||||
// Mild CSP to avoid breaking inline styles/scripts already present; adjust as needed
|
// Mild CSP to avoid breaking inline styles/scripts already present; adjust as needed
|
||||||
"Content-Security-Policy":
|
"Content-Security-Policy":
|
||||||
"default-src 'self'; img-src 'self' data: https:; style-src 'self' 'unsafe-inline' https:; script-src 'self' 'unsafe-inline' https:; font-src 'self' https: data:",
|
"default-src 'self'; img-src 'self' data: https:; style-src 'self' 'unsafe-inline' https:; script-src 'self' 'unsafe-inline' https:; font-src 'self' https: data:; frame-src 'self' https://ko-fi.com https://*.ko-fi.com; child-src 'self' https://ko-fi.com https://*.ko-fi.com",
|
||||||
...base,
|
...base,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<h3 class="text-sm font-semibold text-slate-200">Apoya el proyecto</h3>
|
<h3 class="text-sm font-semibold text-slate-200">Apoya el proyecto</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-2 bg-slate-900">
|
<div class="p-2 bg-slate-900">
|
||||||
<iframe id="kofiframe" src="https://ko-fi.com/shnimlz/?hidefeed=true&widget=true&embed=true&preview=true"
|
<iframe class="rounded-2xl" id="kofiframe" src="https://ko-fi.com/shnimlz/?hidefeed=true&widget=true&embed=true&preview=true"
|
||||||
style="border:none;width:100%;padding:4px;background:#0b1020;"
|
style="border:none;width:100%;padding:4px;background:#0b1020;"
|
||||||
height="712" title="shnimlz"></iframe>
|
height="712" title="shnimlz"></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user