visual-studio - Chrome 更新搞砸了我用 VS 进行的调试
问题描述
从昨天到今天,我无法在 localhost 中启动我的项目,因为我的非安全 chrome 似乎已更新到版本 94.0.4606.61 (Build oficial) (x86_64) 并且当我启动我的混合应用程序时它应该做之前的自动登录是 200 响应,现在是 302 并进行重定向。
这里可能是什么问题?
这是我的launch.json
{
"configurations": [{
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8100/#/Home/dashboardApp",
"runtimeArgs": [
"--args",
"--disable-web-security",
"--allow-file-access-from-files",
"--allow-running-insecure-content",
"--ignore-certificate-errors",
"--disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure",
],
"webRoot": "${workspaceFolder}/src"
}]
}
解决方案
1- - 下载旧版 Chromium Chrome。
2- 将 .app 放入您的应用程序查找器中。
3-将此添加到您的可视代码launch.json(在“配置”中)“runtimeExecutable”:“/Applications/Chromium.app/Contents/MacOS/Chromium”
4- 如果您无法打开 Chromiun,请转到系统偏好设置、安全/隐私和常规。
重要说明,不推荐使用 chrome 的扩展调试器,请将其卸载。使用 VS Code 的内部调试器。
推荐阅读
- nearprotocol - 如何查看 NEAR 协议创始时创建的原始账户结构?
- api - 我可以使用 Microsoft Graph API 同时使用文件夹名称和 ID 获取孩子吗?
- cybersource - Cybersource Flex api:如何使用令牌化卡请求?
- node.js - 如何使用nestjs + typeorm定期生成数据库连接密码?
- scala - 类型类操作:启用以查找参数的隐式值
- java - 循环条件的未经检查的输入 - LocalDate 的 CheckMarx 错误
- forms - 如何使用 MudBlazor 进行表单验证?
- flutter - 如果在没有等待的情况下调用异步函数,则发出警告
- python - 正则表达式匹配单词组和逗号后的括号
- conemu - ConEmu 运行 {cmd} 而不是 cmd.exe