I am working on a project where I have a website that is being hosted on a web server and I am making some APIs there which involves sending data from the web server to my machine.
For example I have a text box and a submit button and when I press submit it should send a https Post request to the flask application on my computer that should print out the text from the textbox.
The question is:
How do I securely send this https Post request to my machine without opening any ports and without having to create any new firewalls rules and if this is even possible.
I have made some research on ssh tunnelling but I havent quite figured out how it works and maybe there is a better solution than that so I am asking the community for help.
I havent actually tried anything yet I just made my reserach and thought it couldnt hurt to ask on stackoverflow.