It seems such a simple question, but I canβt find the answer and therefore makes me believe, maybe I have no control over the flag !?
Context:
I am developing a SignalR hub and client. Everything works fine if (on the signalr site) I set the following in config:
<system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="http://example.com" /> </customHeaders> </httpProtocol> </system.webServer>
The problem is that I would like to use a wildcard here.
When I do (ie value="*" ), I get the following error (on the client):
A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true.
I might well be missing something here, but I cannot find the appropriate entry in config that would allow me to set the credential flag.
What i tried
<add name="Access-Control-Allow-Credentials" value="false"/>
It doesn't seem to matter (same error).
source share