Hotfix/cors

fixes the crash on OPTIONS requests when using CORS