OPTIONS: Method not allowed

Description

The Rocket.Chat API is working perfectly, from a server or an application like Postman, but when I’m building my serverless application, requesting the API comes with a preflight request (OPTIONS request) that returns an error “405: Method is not allowed”, and with that failing the original wanted request gets canceled.

Server Setup Information

  • Version of Rocket.Chat Server:
  • Operating System: Linux (Release: 5.0.0-1027-azure)
  • Deployment Method: docket
  • Number of Running Instances: 1
  • DB Replicaset Oplog: -
  • NodeJS Version: v8.11.4
  • MongoDB Version: 4.0.14
  • Proxy: -
  • Firewalls involved: -