Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devserver app request post url get 405 #2392

Closed
1 of 2 tasks
henryzp opened this issue Jan 15, 2020 · 1 comment
Closed
1 of 2 tasks

devserver app request post url get 405 #2392

henryzp opened this issue Jan 15, 2020 · 1 comment

Comments

@henryzp
Copy link

henryzp commented Jan 15, 2020

  • Operating System: mac
  • Node Version: v10.17.0
  • NPM Version: 6.11.3
  • webpack Version: ^4.40.2
  • webpack-dev-server Version: 3.10.2
  • Browser: chrome
  • This is a bug
  • This is a modification request

Code

I implemented a server function myself, go to compile webpack。

The following code is to proxy local mock requests

// app => devServer.app
app.use(`${prefix}/*`, localMockHandler(prefix, true)); 

function localMockHandler() {
    // return a middleware
    return () => {

    }
}

The get request is normal, but the post request will report 405。

but I use webpack-dev-server@3.8.1,It is good and normal。

Expected Behavior

post request can normal。

Actual Behavior

post request break,it tell me 405,post method not allowed。

@alexander-akait
Copy link
Member

Already fixed #2374, just not released yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants