In our freshsales suite app “iparams.html” page, when we try to store a base64 string of an image, video or a document in iparams, we are getting an error as “payload too large” and also we are getting the same error, when we try to use the same with client. request or any other request package.
Node version used v12.22.0.
fdk version 7.4.2
please find the screenshot of the error below for reference.
We are not trying to store the media file in iparam. Instead, we are just storing the base64 string of the media file.
Since we are unable to pass the large data using client.request package, we tried to pass the “base64 string” of the media file in the, axios, and xhttp request packages and got an error response as “Access to XMLHttpRequest at ‘https://abc.com/mediaAPI/media/’ from origin ‘http://localhost:10001’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”.