CORS/limit route detection fix