Fixed the condition for the CORS.