I have an API on AWS API Gateway that works with all other tools but Slash Commands just gives an error.
I have an API on AWS Gateway that returns a simple JSON object that I want to use for a Slash Command.
I tried it with different tools, including curl from the machine running Mattermost and they all return the correct result.
Using the same URL from within a Slash Command just gives me a Cloudfront 403 Error, pasted here from the log without the HTML and without some server details.
Command with a trigger of ‘slashtest’ returned response 403 Forbidden. Details:
The request could not be satisfied.
Generated by cloudfront (CloudFront)
Now, I see that there is a non-mattermost component in the error message, but as no other tool has trouble calling the API I suspect that Mattermost does something on it’s own.
Does someone know how Mattermost calls APIs form inside a slash command? Are any parameters or headers added or changed?