I have a Heroku app that allows users to apply leaves however if a user applies leave on a weekend or public holiday - the app through Cloudflare will not display the error message “Leave applied is on a weekend or public holiday”
"On the console it will show "Failed to load resource: the server responded with status of 502 ().
Error Status 502 undefined
Whereas if I use the original web address (herokuapp) and not through Cloudflare. It will display the error message
"On the console it will show “Failed to load resource: the server responded with status of 502 (BAD GATEWAY).
Error Status 502 Leave Applying start in Weekends\Holidays”
Can someone help and point out how I can resolve this on Cloudflare?