JasonL
13 years agoLithium Alumni (Retired)
Upload Image via REST > Cross-origin request? Format for image data (base64 or binary)?
Hi Community,
Some questions from Customer ... appreciate your help.
Thanks!
--Jason
Q1: Cross-Origin Request - what's the meaning?
Here’s our test form:
<form action="http://com...
- 13 years ago
Hi JasonL,
Hopefully these will answer your questions:
Q1: Cross-Origion Request errors are sent when you try to make an AJAX request (XMLHttpRequest) from a different domain than either the server domain or one of the domains Lithium has configured your site to allow cross-origin requests from. Please contact support to have additional domains added to the list of allowed domains.
Q2: The upload should be made as an HTTP POST using multipart/form-data encoding -- like this:
<form method="post" enctype="multipart/form-data">
-Doug