changed corsfilter so it works with IE as well