Can a badly configured nginx reverse proxy or cloudflare cdn causes my api to be called twice on one request

Problem:
I recently uploaded my website to my linode server to be able to use it with a domain and enable https. Everything looked liked it was working fine on my express.js api, but I recently checked my requests log and each time I made a request to domain.com/api/count it was printing two requests. The same goes for every other calls I made. Locally it works fine, but on my server it is not. So my questions is, is it possible that a misconfigured nginx reverse proxy or the cloudflare cdn causes that. I cannot find any other reason why it would since locally it works. Any help would be appreciated, thanks you!

If you need my nginx config or any other information, feel free to ask me.