This shouldn't be necessary. The browser should handle the cross domain stuff. What this will do is force cross domain requests on the same server which is useful in some cases but shouldn't be needed here.