搜了好久,发现解决办法有:
打开chrome://flags找到“Show in-form warnings for sensitive fields when the top-level page is not HTTPS”设置为 disabled找到 “Allow invalid certificates for resources loaded from localhost”设置为 “enabled”