I am trying to add a reuqest header element to prevent using cloudfront url without this parameter. Here is my fetching
fetch(url, {
method: 'GET',
headers: {
"header":value
}
}).then(res => res.blob())
.then(blob => {
const urlObject = URL.createObjectURL(blob);
//set url to iframe
})
How can I set this header value and check on AWS side?