modify cors is authenticator wrapper is loaded