Answer the question
In order to leave comments, you need to log in
How to bypass payload too large?
jq is throwing an error
payload too largebecause I'm trying to send a variable with a huge amount of text to the server and return the same variable.
jquery-3.4.1.min.js:2 POST http://****/print 413 (Payload Too Large)
Answer the question
In order to leave comments, you need to log in
Judging by the url, you have the task of creating a printed version or something like that. It is worth rewriting this functionality so that it works on the server, and not in the browser.
For example, to send the script not a bare HTML code, but its JSON representation of the type:
[{"block":"div","class":"my-class","content":"content"}]
And if the task of your / print/ to make a PDF, calculation or printout of the goods in the basket located, for example, on the site, then you should only pass the ID of these same goods to it, let the script get them from the database
and render HTML from it on the server or whatever you have there.
If the request and response are approximately the same size, then the system is designed incorrectly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question