1

I am receiving a 405 Method Not Allowed error for an ASP.Net WebAPI service in Elastic Container Service when accessed via Postman. This error does not occur when running the container locally using Docker or using the Swagger UI via a browser.

        /// <summary>
        /// Log into the application
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        [Route("api/v1/authenticate")]
        [AllowAnonymous]
        public IActionResult Post([FromBody]LoginDto loginAttempt)
        {
          ...
        }

I don't know where to start with this as it's only happening in the cloud, and only when accessing the API via Postman. Can anyone help?

KnowHoper
  • 4,352
  • 3
  • 39
  • 54

0 Answers0