I’m unable to reproduce the 405 using your same code just set to an different endpoint - Are you positive https://myapi.com/collector allows POST? If I configure my test API to not allow for POST I do see The specified method is not allowed against this resource.
Hi there, thanks for testing. The endpoint does accept post as I am able to post via Postman. But it did occur to me that it could be a CORS issue, but the error code wouldn’t make sense, right?