Modified CORS filter