MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Response header when using virtual host name mapping

Open
#3,462 1 comment 0 reactions 1 assignee View on GitHub

@LiangTheDev is already working on this.

Since May 8, 2023.

bug tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I enabled virtual host name mapping by calling webView.CoreWebView2.SetVirtualHostNameToFolderMapping();

In JavaScript, I did a "HEAD" request using XMLHttpRequest();
Currently, xhr.getAllResponseHeaders() returns:

content-type: application/octet-stream
last-modified: Thu, 04 May 2023 11:23:51 GMT

That's all of the response header.
The problem is some of my apps uses "Content-Length" to get the size of the remote file, which does not exist here.

Is this a bug? Can you add "Content-Length" information into the response header for virtual host name mapping?

Thanks.

AB#44560465

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.