Fix CORS config overwrite bug.