WebFaction
Community site: login faq

Hi, I get a 405 error when trying to send POST requests to my Node app. From what I have read on here, it's something that might only be fixable by changing the Nginx configuration. But I am not sure how to install a new custom app of Nginx because the instructions I've found online don't seem up to date and I wonder whether there is now an easier way to do it.

What happens is that a 405 error is thrown when I submit the POST from another domain, but not locally (e.g. from curl on the local command line.) I thought it might be a cross-origin problem but I had no luck after adding the appropriate header information for accepting * domains. Any ideas?

asked 16 Oct '15, 21:39

JohnGoren
2613
accept rate: 100%

What is the URL to which you are submitting the POST request?

Feel free to open a support ticket if you'd rather not share that information here.

(17 Oct '15, 00:13) seanf

Thanks for the note. I was throwing the POST requests at

http://surf.gorenfeld.net/

Seems to work from Curl but not from Hurl.it, an HTTP request maker.

(17 Oct '15, 00:31) JohnGoren

Very strange, it seems to be working now. I'm not sure what happened.

permanent link

answered 17 Oct '15, 00:39

JohnGoren
2613
accept rate: 100%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×15
×6
×3

question asked: 16 Oct '15, 21:39

question was seen: 2,740 times

last updated: 17 Oct '15, 00:50

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM