Replies: 2 comments
-
This was what I originally had: import { MiddlewaresConfig } from "@medusajs/medusa"
import { raw } from "body-parser"
import cors from 'cors';
export const config: MiddlewaresConfig = {
routes: [
{
matcher: "/webhooks/*",
bodyParser: false,
middlewares: [
cors({
origin: "*",
}),
raw({ type: "application/json", limit: '500mb' })
],
},
],
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
This suggestion also didn't work: #4302 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running into this error while receiving an event in one of my webhooks:
I have tried different settings, but even having these two options, I'm getting the same error:
Beta Was this translation helpful? Give feedback.
All reactions