From 3a76353248009c1960344a4d2d28d56ccb50bade Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Mon, 2 Dec 2024 17:03:55 +0000 Subject: [PATCH] fix: update tests (#12586) Co-authored-by: matthewp <361671+matthewp@users.noreply.github.com> --- .../astro/test/fixtures/astro-cookies/astro.config.mjs | 7 +++++++ packages/astro/test/fixtures/redirects/astro.config.mjs | 7 +++++++ packages/astro/test/fixtures/reroute/astro.config.mjs | 5 ++++- .../astro/test/fixtures/rewrite-server/astro.config.mjs | 5 ++++- .../astro/test/fixtures/ssr-error-pages/astro.config.mjs | 7 +++++++ 5 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 packages/astro/test/fixtures/astro-cookies/astro.config.mjs create mode 100644 packages/astro/test/fixtures/redirects/astro.config.mjs create mode 100644 packages/astro/test/fixtures/ssr-error-pages/astro.config.mjs diff --git a/packages/astro/test/fixtures/astro-cookies/astro.config.mjs b/packages/astro/test/fixtures/astro-cookies/astro.config.mjs new file mode 100644 index 000000000000..1ddc69dcc089 --- /dev/null +++ b/packages/astro/test/fixtures/astro-cookies/astro.config.mjs @@ -0,0 +1,7 @@ +import { defineConfig } from "astro/config"; + +export default defineConfig({ + security: { + checkOrigin: false + } +}) diff --git a/packages/astro/test/fixtures/redirects/astro.config.mjs b/packages/astro/test/fixtures/redirects/astro.config.mjs new file mode 100644 index 000000000000..1ddc69dcc089 --- /dev/null +++ b/packages/astro/test/fixtures/redirects/astro.config.mjs @@ -0,0 +1,7 @@ +import { defineConfig } from "astro/config"; + +export default defineConfig({ + security: { + checkOrigin: false + } +}) diff --git a/packages/astro/test/fixtures/reroute/astro.config.mjs b/packages/astro/test/fixtures/reroute/astro.config.mjs index c800d0ddaacc..b03ed31e2232 100644 --- a/packages/astro/test/fixtures/reroute/astro.config.mjs +++ b/packages/astro/test/fixtures/reroute/astro.config.mjs @@ -2,5 +2,8 @@ import {defineConfig} from 'astro/config'; // https://astro.build/config export default defineConfig({ - site: "https://example.com" + site: "https://example.com", + security: { + checkOrigin: false + } }); diff --git a/packages/astro/test/fixtures/rewrite-server/astro.config.mjs b/packages/astro/test/fixtures/rewrite-server/astro.config.mjs index ecd3b251872e..14db3602c48e 100644 --- a/packages/astro/test/fixtures/rewrite-server/astro.config.mjs +++ b/packages/astro/test/fixtures/rewrite-server/astro.config.mjs @@ -3,5 +3,8 @@ import {defineConfig} from 'astro/config'; // https://astro.build/config export default defineConfig({ output: "server", - site: "https://example.com" + site: "https://example.com", + security: { + checkOrigin: false + } }); diff --git a/packages/astro/test/fixtures/ssr-error-pages/astro.config.mjs b/packages/astro/test/fixtures/ssr-error-pages/astro.config.mjs new file mode 100644 index 000000000000..1ddc69dcc089 --- /dev/null +++ b/packages/astro/test/fixtures/ssr-error-pages/astro.config.mjs @@ -0,0 +1,7 @@ +import { defineConfig } from "astro/config"; + +export default defineConfig({ + security: { + checkOrigin: false + } +})