Hotfix to CORS hook.