Fix incorrect override code for cors headers in firefox