[尝试从PC浏览器访问Raspberry Pi网页时出现错误403

问题描述 投票:0回答:1

我正在为一个学校项目工作,我正在尝试从树莓派上的网页中读取数据,并将其显示在PC网页上的页面上。我正在使用ajax,但是当我尝试访问IP 192.168.1.8上RPi上的网页时,它给了我一个错误:“错误403禁止访问”错误,所以我不知道该怎么办

我进入页面的代码:

function AddShoots() {
  $.ajax({
    method: "POST",
    url: "http://192.168.1.8",
    success: function (html) {
      alert(html);
    },
  });
}

错误图片:if it's any help, sorry for the language I'm from Slovenia, so it's Slovene

javascript php ajax raspberry-pi raspberry-pi3
1个回答
0
投票

已解决!

© www.soinside.com 2019 - 2024. All rights reserved.