gpt4 book ai didi

asp.net - 无法在本地使用 windows live api

转载 作者:可可西里 更新时间:2023-11-01 13:53:57 26 4
gpt4 key购买 nike

你好,

我在使用 Windows live API 时遇到问题

我正在使用 asp.net,无法在本地使用回调 url

登录链接只有在我提供实时 url 时才有效,但我无法使用本地主机。

请帮忙

最佳答案

它也可能对其他人有帮助-

请在主机文件中添加以下条目(位于[%system drive%]\Windows\System32\drivers\etc)

127.0.0.1  www.example.com 

#[Please replace example domain with your actual one]

Windows live 服务器希望您的返回 url 中包含 http://,但 chrome 不添加它而 IE 确实添加了它,我在浪费了一些时间后才意识到这一点。

这应该可以帮助您在本地计算机上测试 api。

关于asp.net - 无法在本地使用 windows live api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5574633/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com