Fix FF CORS issue

Fix the bug wherein authenticated CORS requests fail when using Firefox