duankange2433 2014-08-30 03:07
浏览 77

Dreamweaver可以加载api请求,但Google Chrome不能

So I'm trying to use the steam web api and create a simple page that displays the user's friend list. So far I managed to get an arraylist containing all the steam-64 ids of the user's friend list. However, the problem is I tested this on the live view feature in Dreamweaver.

When I load it into Google Chrome, nothing displays it returns this error in the console:

Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest'. Failed to load http://api.steampowered.com/ISteamUser/GetFriendList/v0001/?key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&steamid=76561197960435530&relationship=friend

However, when I test it using the live feature on Dreamweaver, I get this:

enter image description here

The steam-id shown below the sign in button demonstrates that my code is working.

I am currently using xampp (so apache) to run my php file. I have configured it in Dreamweaver properly and I've also enabled mod_rewrite and mod_proxy. However, the request cannot still be loaded when I display in Google Chrome.

If anyone can please help, it would be appreciated.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 划分vlan后不通了
    • ¥15 GDI处理通道视频时总是带有白色锯齿
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)
    • ¥15 自适应 AR 模型 参数估计Matlab程序
    • ¥100 角动量包络面如何用MATLAB绘制
    • ¥15 merge函数占用内存过大
    • ¥15 使用EMD去噪处理RML2016数据集时候的原理
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大