Status Code: 405 Method Not Allowed
See original GitHub issueI’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->
Current behavior
This is a duplicate of Issues #54 and #66, but they have been closed. I have tried the suggestions in Issue #54, but they did not work for me (i.e. running on a different port and killing any task running on port 5500).
I have a simple HTML form with method=“post”. When the form is submitted, Live Server returns a 405 Method Not Allowed. Looking in the browser Developer Tools, the Response header has “Allow: GET, HEAD, OPTIONS”.
Expected behavior
I would expect Live Server to not serve back a 405 error 😃
Environment
Windows 7 Home, 64-bit
Browser:
- [x] Chrome (desktop) version 76.0.3809.100 (64-bit)
- [x] Firefox version 68.0.1 (64-bit)
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Live Server: 5.6.1
- Platform: Windows
- Visual Studio Code: 1.36.1
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:21
Top Results From Across the Web
How to Fix the HTTP 405 Method Not Allowed Error - Kinsta®
The 405 Method Not Allowed error occurs when the web server is configured in a way that does not allow you to perform...
Read more >How to Fix HTTP Error 405 Method Not Allowed - Hostinger
The 405 Method Not Allowed error occurs between a client and a server. This message indicates that the web server has recognized a...
Read more >405 Method Not Allowed: What It Is and How to Fix It
The 405 Method Not Allowed is an HTTP response status code indicating that the server received and recognized the specified request HTTP ......
Read more >The 2-Minute Guide to Fixing HTTP Error 405 (Method Not ...
A 405 Method Not Allowed Error is an HTTP response status code that indicates a web browser has requested access to one of...
Read more >405 Method Not Allowed - KeyCDN Support
The 405 Method Not Allowed error is an HTTP response status that tells you that a web browser has made a request to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue. Just stopped using Live Server in VS Code.
I found the same issue:
$.ajax('data/addToCart.json', { type: 'POST', dataType: 'json', contentType: 'application/json' })
Once I switch from Live Server to NodeJS’s node-http-server the issue was no longer happening.