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:
5
.changeset/grumpy-adults-relate.md
Normal file
5
.changeset/grumpy-adults-relate.md
Normal file
@@ -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"
|
||||
|
||||
const ADMIN_EMAIL = "admin@medusa-test.com"
|
||||
const STORE_CORS = "http://localhost:8000,https://docs.medusajs.com"
|
||||
const ADMIN_CORS =
|
||||
"http://localhost:5173,http://localhost:9000,https://docs.medusajs.com"
|
||||
const AUTH_CORS = ADMIN_CORS
|
||||
let STORE_CORS = "http://localhost:8000"
|
||||
let ADMIN_CORS =
|
||||
"http://localhost:5173,http://localhost:9000"
|
||||
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"
|
||||
|
||||
type PrepareOptions = {
|
||||
|
||||
Reference in New Issue
Block a user