Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my app, I want to use wildcard to use * to substitute the "https://XXXXXX.com" in the webconfig file.
HTML
<add name="Access-Control-Allow-Origin" value="https://XXXXXX.com" />

What is the procedure I should follow to do so? Thanks.

What I have tried:

How to use wildcard in config file?
Posted
Updated 22-Apr-19 11:29am
v2
Comments
Richard MacCutchan 22-Apr-19 13:17pm    
You need to write the code to modify the string at execution time.
[no name] 22-Apr-19 14:05pm    
Does that mean you want "no restrictions"? What's happening now that you need to "fix"?

1 solution

For a CORS string, a * works as a wild card
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900