docs: fixed cors import in endpoints documentation (#3987)
Fixed import of the `cors` package to the following: ```ts import * as cors from "cors" ```
This commit is contained in:
1 parent
d5d1c4c102
commit
c04cbbaa1b
1 file changed
+1
-1
@@ -105,7 +105,7 @@ import {
|
||||
import {
|
||||
ConfigModule,
|
||||
} from "@medusajs/medusa/dist/types/global"
|
||||
import cors from "cors"
|
||||
import * as cors from "cors"
|
||||
```
|
||||
|
||||
Next, in the exported function, retrieve the CORS configurations of your backend using the utility functions you imported:
|
||||
|
||||
Reference in new issue
Block a user