[Bugfix] fixed bad refactoring using wrong parameter for corsOrigin