feat(medusa): manage payment sessions from payment collection (#2402)

* feat: manage payment sessions from payment collection
This commit is contained in:
Carlos R. L. Rodrigues
2022-11-02 13:34:29 -03:00
committed by GitHub
parent a014e3623c
commit c3f8297599
28 changed files with 2002 additions and 1315 deletions

View File

@@ -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")