Currently, I've been tackling a challenge while developing a PWA game. My stumbling block is figuring out how to execute an HTTPS request using JavaScript. Despite conducting extensive research on the topic through various search engines, I wasn't able to locate any helpful solutions. While I am aware that I could utilize XMLHttpRequest(), PWAs require all requests to be made over HTTPS for security purposes.
I have chosen not to incorporate JQuery, Angular, Vue.js, or any other frameworks into my project. Ideally, I would prefer to maintain flexibility and independence from such dependencies.
Any guidance or suggestions to steer me in the right direction would be greatly appreciated :)