开发者

Do I need a crossdomain.xml file for my MVC2 site?

I am getting the following error in my MVC2 site: The controller for path '/crossdomain.xml' was not found or does not implement IController.

From some research it appears that the fil开发者_JS百科e is related to antiforgery and cross site scripting (XSS) attacks. Do I need a crossdomain.xml file for my MVC2 site?


Do I need a crossdomain.xml file for my MVC2 site?

Only if you want it to be accessible cross domain from client Flash scripts. Also to avoid this error you could exclude it from your routes:

routes.IgnoreRoute("crossdomain.xml");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜