-
Hi! My use-case involves doing local development while getting requests from an external service into my module.exports = async (req, res) => {
console.log(req.body)
res.status(200).json(req.body)
} It works when I locally But when getting the request from an external host |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I tried setting "headers": [
{
"source": "/(.*)",
"headers": [
{
"key" : "Access-Control-Allow-Origin",
"value" : "/*"
},
{
"key" : "Access-Control-Allow-Headers",
"value" : "Origin, X-Requested-With, Content-Type, Accept"
},
{
"key" : "Access-Control-Allow-Credentials",
"value" : "true"
}
]
}
]
|
Beta Was this translation helpful? Give feedback.
-
@benoror External sources have no way to reach your local domain unless you open up a tunnel to your local machine with something like ngrok. |
Beta Was this translation helpful? Give feedback.
@benoror External sources have no way to reach your local domain unless you open up a tunnel to your local machine with something like ngrok.