You have to add http://localhost to your Authorized JavaScript origins, along side w/ the one w/ the port.
http://localhost
Authorized JavaScript origins
Google recently deprecated the legacy One Tap with the fedCM, try adding use_fedcm_for_prompt: true in your initialize call.
use_fedcm_for_prompt: true
initialize