I\'m working on a completely ajax-driven application where all requests pass through what basically amounts to a main controller which, at its bare bones, looks something li
I do not think this offers any kind of protection. An attacking site could still use xmlhttprequest for its cross-site request bypass your check.
xmlhttprequest