Your above steps should allow Google to recognize localhost as an authorized origin, resolving the "origin_mismatch" error in your development environment. Setting up separate credentials for development and production is also a good practice to simplify environment specific configurations.