-
Notifications
You must be signed in to change notification settings - Fork 878
Closed
Description
Is this a question?
Can I change my request method from POST to GET? I don't want a POST request because I don't want to change my mock data.Thank you.
Expected behavior
devServer: {
proxy: {
'/api/*': {
target: 'http://localhost:3000',
serve: req => {
if (req.method === 'POST') {
req.method = 'GET';
}
}
},something like that...
Actual behavior
Haven't found a way to do this.
client info
webpack4
Metadata
Metadata
Assignees
Labels
No labels