Ajax is cross-domain. How to set multiple domain names in IIS's Access-Control-Allow-Origin?

I write header in the HTTP response header of IIS. How do I set up multiple domain names? Setting * is too unsafe

clipboard.png

the backend is written by php, but header will report an error when written in php, so it can only be written in IIS

.
Mar.23,2021

use URL Rewrite components:

in Web.config, the configuration allows cross-domain access to multiple specified domain names


IIS already has a dedicated CORS component, so please delete your own defined response header,

https://docs.microsoft.com/zh.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea23a2-1bb4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea23a2-1bb4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?