GitXplorerGitXplorer
l

iisexpress-cors

public
13 stars
3 forks
0 issues

Commits

List of commits on branch master.
Verified
634f67884d9b3c2f5d66d1c12a3f7864e6b7e1ec

Update Readme.md

llextm committed 2 years ago
Verified
ad3c6cf357b38f1c0596ee5a22b36802ed6ec89b

Update Readme.md

llextm committed 2 years ago
Verified
24505f1b54a71bab7c3d1b8ad2180e6065ad7c75

Update Readme.md

llextm committed 2 years ago
Verified
9dc83bddded2bd79d5a88afa7143acc13a17725e

Update Readme.md

llextm committed 3 years ago
Verified
7a3cec7de4b5c17f45f35f3e7eda24ccc46c9b84

Merge pull request #3 from kevinoid/msiextract

llextm committed 3 years ago
Unverified
1576899ae016d16df3dca8be3e2d6867b655700c

Update installation steps to avoid installing IIS

kkevinoid committed 3 years ago

README

The README file for this repository.

PowerShell Scripts to Install/Uninstall CORS Module for IIS Express

Install

  1. Install IIS Express.

  2. Download Microsoft CORS Module for IIS installer.

  3. Install lessmsi tool and configure it in your PATH (so that lessmsi can be called by the install script).

  4. Run the proper command to install CORS module to IIS Express,

    If the CORS module for IIS has been installed on this same machine in advance, then -msiFile switch can be omitted.

    For VS 2015 and above, you must use -fileName switch to guide the script and modify the correct applicationHost.config file for your Visual Studio solution file. To learn more on how to locate the correct config file, you can read this article.

    • At command prompt
    powershell.exe -file install.ps1 -msiFile IISCORS_amd64.msi
    • In PowerShell console
    .\install.ps1 -msiFile IISCORS_amd64.msi

The configuration on IIS Express is exactly the same as IIS, and just make sure you are editing the right config files,

https://learn.microsoft.com/en-us/iis/extensions/cors-module/cors-module-configuration-reference

Uninstall

  1. Run uninstall.ps1 to uninstall CORS module from IIS Express.

Notes

  • The current release only supports Windows x64 machines.
  • The scripts must be run as administrator, because they need to copy/remove files to/from Program Files folder.
  • install.ps1 and uninstall.ps1 only manipulate the default IIS Express config file in current user's My Documents folder.
  • If a custom config file needs to be modified, run the PowerShell scripts with arguments (like install.ps1 -fileName custom.config).