JSON cross site without JSONP

后端 未结 5 975
半阙折子戏
半阙折子戏 2021-01-22 15:15

I have a local piece of hardware that I access via it\'s IP address to retrieve json data.

I am creating a web based app but it can not access the local json data when t

5条回答
  •  日久生厌
    2021-01-22 16:05

    Can you add header to the HTTP Response? If yes, add the following

    Access-Control-Allow-Origin with the value *

    then your browser will allow the request for that resource

提交回复
热议问题