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:
@@ -105,7 +105,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
ConfigModule,
|
ConfigModule,
|
||||||
} from "@medusajs/medusa/dist/types/global"
|
} 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:
|
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