Getting a header from post response?

i found a solution using the web viewer.

<!DOCTYPE html>
<html>
<head>
  <title>Fetch Request</title>
  <script src="https://thunkable.github.io/webviewer-extension/thunkableWebviewerExtension.js" type="text/javascript"></script>
</head>
<body>
  <script type="text/javascript">
    // Your JavaScript code here...
    fetch("URL", {
        "method": "POST",
        "headers": {
            "Content-Type": "application/json",
            "Ocp-Apim-Subscription-Key": "my key"
        },
        "body": JSON.stringify({
            "urlSource": "my image location"
        })
    })
    .then(response => {
        const operationLocation = response.headers.get('operation-location');
        // Send the operationLocation to Thunkable:
        ThunkableWebviewerExtension.postMessage(operationLocation);
    })
    .catch(err => {
        // Handle errors here
        console.error(err);
    });
  </script>
</body>
</html>