fix: cors
This commit is contained in:
1 parent
40725c6d0a
commit
15bbb71a46
1 file changed
+1
@@ -21,6 +21,7 @@ export default (app, rootDirectory) => {
|
||||
route.options("/variants/:variant_id", cors(corsOptions))
|
||||
route.post(
|
||||
"/variants/:variant_id",
|
||||
cors(corsOptions),
|
||||
bodyParser.json(),
|
||||
middlewares.wrap(require("./add-email").default)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user