Skip to content

Commit 08d1aec

Browse files
committed
add csp
1 parent 460b4c7 commit 08d1aec

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

astro.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ const isLocalDevelopment = process.env.NODE_ENV === 'development';
1515
export default defineConfig({
1616
server: {
1717
port: DEV_PORT,
18-
headers: {
19-
"Content-Security-Policy": "default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests",
20-
}
2118
},
2219
output: "static",
2320
base: '/',

src/components/hero.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import Container from "@components/container.astro";
2222
</h1>
2323
<p
2424
class="text-lg mt-4 max-w-lg text-slate-600 [text-wrap:balance] text-center lg:text-start">
25-
1 centralized platform that standardizes the development, deployment, and execution of frontend experiences within a unified app shell and shared infrastructure.
25+
A centralized platform that standardizes the development, deployment, and execution of frontend experiences within a unified app shell and shared infrastructure.
2626
</p>
2727
<div
2828
class="mt-6 flex flex-col sm:flex-row sm:justify-center lg:justify-start gap-3">

vercel.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"headers": [
3+
{
4+
"source": "/(.*)",
5+
"headers": [
6+
{
7+
"key": "Content-Security-Policy",
8+
"value": "default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"
9+
}
10+
]
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)