I'm trying to create a HTML form to upload an image with encoding type - multipart/form-data.
I've been instruted to use an 'Origin' header with the value 'https://some-url.com' and a 'Host' header with the value 'image-upload.amazonaws.com'
But I can figure out where to specify the'Origin' header.
My HTML looks this this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>upload image file</title>
</head>
<body>
<form action="image-upload.amazonaws.com" method="post" enctype="multipart/form-data">
<p><input type="text" name="key" value="async_uploads/123456789-987654321">
<p><input type="text" name="success_action_status" value="201">
<p><input type="text" name="policy" value="sdfghjsdfg8sdfgshdfgjksg=">
<p><input type="text" name="x-amz-credential" value="DSFGHJSDFGH?878dfg78">
<p><input type="text" name="x-amz-algorithm" value="AWS4-HMAC-SHA256">
<p><input type="text" name="x-amz-date" value="20180620T022620Z">
<p><input type="text" name="x-amz-signature" value="sdg678sdfg7h34">
<p><input type="file" name="myimage.png">
<p><button type="submit">Submit</button>
</form>
</body>
</html>
Can anyone help me?
Thanks in advance...