h3
h3 copied to clipboard
Problem proxyRequest
Environment
- Operating System: Darwin
- Node Version: v20.9.0
- Nuxt Version: 3.12.2
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: -
- Runtime Modules: -
- Build Modules: -
Reproduction
import {joinURL, withQuery} from "ufo";
export default defineEventHandler(async (event) => {
const path = event.path;
return proxyRequest(event, joinURL(useRuntimeConfig().coreServiceBaseUrl, path));
})
Describe the bug
When I use delete method I can't pass parameters per query, I received state 502 Bad Gateway.
It works perfectly with Axios.
Additional context
No response
Logs
No response