feat(medusa): manage payment sessions from payment collection (#2402)
* feat: manage payment sessions from payment collection
This commit is contained in:
committed by
GitHub
parent
a014e3623c
commit
c3f8297599
@@ -93,6 +93,15 @@ const bootstrapApp = async () => {
|
||||
}
|
||||
|
||||
const app = express()
|
||||
app.use((req, res, next) => {
|
||||
res.header("Access-Control-Allow-Origin", req.headers.origin)
|
||||
res.header("Access-Control-Allow-Methods", "*")
|
||||
res.header(
|
||||
"Access-Control-Allow-Headers",
|
||||
"Origin, X-Requested-With, Content-Type, Accept"
|
||||
)
|
||||
next()
|
||||
})
|
||||
|
||||
const dir = path.resolve(
|
||||
path.join(__dirname, "../../packages/medusa/src/loaders")
|
||||
|
||||
Reference in New Issue
Block a user