I have many small binary (protobuf) payloads that I want to send in a way that avoids CORS pre-flight requests.
This means I need to encode the data as one of the following
- multipart/form-data
- application/x-www-form-urlencoded
- text/plain
The most efficient approach seems to be multipart/form-data
, but I'm unsure where the overhead becomes inefficient for smaller payloads.
How can I determine the minimal payload size for multipart/form-data
to be a logical option?