fix CORs work, no js window.top redirect on error, no deflate with chunked encoding for IE