We have a widget that has a link that sends the user to a particular page. That link has a couple of parameters, one of which is based on some data entered in the widget. However, if enough data is entered into the widget, that parameter can push the length of the URL past the 2048 character limit, where it ends up being truncated, resulting in a 404 error. I would like to be able to make a link that uses a POST request to open the page in order to get around that limit.
Can anyone tell me how to accomplish that using JavaScript? I've found solutions for C#, solutions that use Angular and solutions that do a submit or all manner of other things; but none of that helps me for my particular situation, which is to send the user to another page with some data that could be too long to fit in a regular URL when he clicks on a link, with the implementation in JavaScript. (AJAX requests are OK if appropriate; we have a couple of different ways to send them at our disposal. Also, the solution has to work with IE, as we're still supporting IE 11.)