IIS CORS Module support for Access-Control-Allow-Private-Network

John Hoven 26 Reputation points
2022-02-23T16:31:52.17+00:00

Chromium 98 introduces [1] a new CORS request. Is there a way to request support for additional CORS headers from the Official Microsoft IIS CORS module [2]? I've been through the configuration reference, and there did not seem to be a way to extend it to additional modules.

[1] https://developer.chrome.com/blog/private-network-access-preflight/
[2] https://www.iis.net/downloads/microsoft/iis-cors-module

Internet Information Services
0 comments No comments
{count} vote

Accepted answer
  1. Bruce Zhang-MSFT 3,751 Reputation points
    2022-02-24T04:36:21.867+00:00

    Hi @John Hoven ,

    After testing, CORS module does not yet support this header now. So the solution is avoid using CORS module and set all response headers through custom headers of web.config.

    <add name="Access-Control-Allow-Private-Network" value="true" />  
    

    177412-1.png

    177345-2.png


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Bruce Zhang

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.