SOLVED - Meteor.HTTP Client Sided POST produces OPTIONS Call

Something really strange happens.

When I do a"post", "", {
   data: {
      hallo: 1,
}, function success(ret, dat) {
   console.log(ret, dat)

I get a strange call with the Method OPTIONS instead of the POST that it should produce.

I would suggest providing more information to make it easier for people to help you. What does “strange call” mean, exactly?

My Window manager just crashed…

here some more information.

when I do the"post"...) it does not do a POST but and OPTIONS call first. As my REST API has no implemented OPTIONS call, it of course crashes…

This is standard HTTP, and every browser does this. Read up on OPTIONS:

1 Like

Ok, later, I found this also. but in my opinion you CANNOT SAY inside of the docs that except of the sync vs async the methods are the same on the client vs. server if there is this kind of difference. It cost me like 2 hours to find that out, because the times before I used that only on the server or on the same host and there of course no OPTIONS-Call is made and the code is excaclty the same but this time my method was just called from the client instead of the server.

Mind sending a PR to the docs to improve this?