c# - IdentityServer3 2.0.0-rc1 and vNext, how to set the CORS Policy? -
the previous method of setting through identityserveroptions has been deprecated. have not come across examples showing new way.
from understand can implement icorspolicyservice or use 1 of default implementations. not clear on should plugged in, , how access default implementations configure them.
aparently, can set allowedcorsorigins through client config , register corspolicyservice this:
var cors = new inmemorycorspolicyservice(clients.get()); factory.corspolicyservice = new registration<thinktecture.identityserver.core.services.icorspolicyservice>(cors);
Comments
Post a Comment