fixed another upload issue
This commit is contained in:
@@ -9,6 +9,14 @@ import node from '@astrojs/node';
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: 'server',
|
output: 'server',
|
||||||
integrations: [react()],
|
integrations: [react()],
|
||||||
|
// Astro's CSRF Origin/Host check fires on form-encoded POSTs and compares
|
||||||
|
// protocols. Behind a TLS-terminating proxy (Traefik), Node sees http://
|
||||||
|
// locally while the browser sends Origin: https://, which falsely fails the
|
||||||
|
// check. SameSite=Strict on the auth cookie + server-side token validation
|
||||||
|
// handle CSRF instead.
|
||||||
|
security: {
|
||||||
|
checkOrigin: false,
|
||||||
|
},
|
||||||
image: {
|
image: {
|
||||||
service: { entrypoint: 'astro/assets/services/noop' }
|
service: { entrypoint: 'astro/assets/services/noop' }
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user