fix(create-medusa-app): add default storefront url to auth CORS (#10853)
* fix(create-medusa-app): add default storefront url to auth CORS * add docs cors to store / admin
This commit is contained in:
1 parent
a989c50051
commit
632600ee11
2 files changed
+12
-4
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-medusa-app": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(create-medusa-app): add default storefront url to auth CORS
|
||||||
@@ -8,10 +8,13 @@ import ProcessManager from "./process-manager.js"
|
|||||||
import type { Client } from "pg"
|
import type { Client } from "pg"
|
||||||
|
|
||||||
const ADMIN_EMAIL = "admin@medusa-test.com"
|
const ADMIN_EMAIL = "admin@medusa-test.com"
|
||||||
const STORE_CORS = "http://localhost:8000,https://docs.medusajs.com"
|
let STORE_CORS = "http://localhost:8000"
|
||||||
const ADMIN_CORS =
|
let ADMIN_CORS =
|
||||||
"http://localhost:5173,http://localhost:9000,https://docs.medusajs.com"
|
"http://localhost:5173,http://localhost:9000"
|
||||||
const AUTH_CORS = ADMIN_CORS
|
const DOCS_CORS = "https://docs.medusajs.com"
|
||||||
|
const AUTH_CORS = [ADMIN_CORS, STORE_CORS, DOCS_CORS].join(",")
|
||||||
|
STORE_CORS += `,${DOCS_CORS}`
|
||||||
|
ADMIN_CORS += `,${DOCS_CORS}`
|
||||||
const DEFAULT_REDIS_URL = "redis://localhost:6379"
|
const DEFAULT_REDIS_URL = "redis://localhost:6379"
|
||||||
|
|
||||||
type PrepareOptions = {
|
type PrepareOptions = {
|
||||||
|
|||||||
Reference in new issue
Block a user