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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -