質問

Presently I am using Thinktecture package for CORS support with my MVC 4 application. on adding the output cache attribute for a method, the CORS support is lost because the HTTP headers are probably cached and the ORIGIN is not modified w.r.t. the request. I know I could use memory cache but it is more tedious.

役に立ちましたか?

解決

using VaryByHeader

[OutputCache(Duration = int.MaxValue, VaryByHeader = "origin;host")]

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top