Hello, figured I would be the first to post a help request since I’m encountering this issue for the past few days.
I am trying to make a webpage/app for personal use to manage my stock trading bots which operate by using catch webhooks which are triggered by sending a POST request to them remotely from a third party website.
When the catch webhook is sent a POST request from the third party website, they send an api request to an API brokerage service to execute the trades.
I am able to get the POST request to the webhooks and orders working in the replit development environment via the Replit assistant, but whenever I re-deploy the website and try with the live website, I keep getting “403 forbidden - Expected X-Requested-With header” when i test the catch webhooks via Postman. I have tried to get both the assistant and the agent to help, but for some reason I just keep getting the same error, and they are never able to get it working with the deployed version, but they can make it work with the development environment.
Its important that I use a deployed version vs. just using the development environment for usage, since the catch webhooks need to be listening live and the deployment environment will not stay active if left unattended.
The errors that I was receiving before I had it working in the development environment were: 502 bad gateway error, and an issue with including a port number in the URLS. The “403 forbidden - Expected X Request with header” is a new error that appears after trying to use the webhooks on the deployed version, and the assistant and agent can’t help me fix it after some time now.
If anyone has any knowledge on this type of thing that can help get me going, it would be really appreciated.
Thank you