MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Response header when using virtual host name mapping
@LiangTheDev is already working on this.
Since May 8, 2023.
- 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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.