EnableCors for VB.net
问题 Does anyone know how to put the enableCors into the controller on vb.net. i am working along with a pluralsight course and tried a code translator with no luck. my attempt is below. <EnableCors(origins: "http://localhost:53080", headers: "*", methods: "*")> 回答1: The correct syntax would be something like this: <EnableCors("http://localhost:53080", "*","*")> The C# example appears to use named parameters. VB.NET supports that too, however the EnableCorsAttributes has properties and contractor