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

I get the following error on my MVC2 site: Controller for path '/crossdomain.xml' not found or does not implement IController.

Some studies have found that the file is associated with antiforgery and cross-scripting (XSS) attacks. Do I need a crossdomain.xml file for my MVC2 site?

+5
source share
1 answer

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

Only if you want it to be available for the cross-domain from client Flash scripts. In addition, to avoid this error, you can exclude it from your routes:

routes.IgnoreRoute("crossdomain.xml");
+11
source

All Articles