Skip to content

Commit 1fd4144

Browse files
fix(security): update allowedDomains configuration in astro.config.mts (#72)
* fix(security): update allowedDomains configuration in astro.config.mts * lint
1 parent cf32cff commit 1fd4144

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

www/astro.config.mts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ export default defineConfig({
2525
cFetch({
2626
lifetime: Duration.hours(1),
2727
}),
28-
studiocms()
28+
studiocms(),
2929
],
3030
security: {
31-
checkOrigin: false,
31+
allowedDomains: [
32+
{
33+
hostname: 'studiocms.dev',
34+
},
35+
{
36+
hostname: '*.studiocms.dev',
37+
},
38+
],
3239
},
3340
adapter: node({
3441
mode: 'standalone',

www/studiocms.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default defineStudioCMSConfig({
1616
inject404Route: false,
1717
},
1818
api: {
19-
apiDocs: false
19+
apiDocs: false,
2020
},
2121
},
2222
componentRegistry: {

0 commit comments

Comments
 (0)