question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Status Code: 405 Method Not Allowed

See original GitHub issue

I’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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:21

github_iconTop GitHub Comments

8reactions
ZahraB21commented, Jan 11, 2020

Same issue. Just stopped using Live Server in VS Code.

1reaction
iszardcommented, Dec 1, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found