Dashboard Cross-domain AJAX with jquery

前端 未结 5 1937
暖寄归人
暖寄归人 2020-12-19 10:21

Hey everyone, I\'m working on a widget for Apple\'s Dashboard and I\'ve run into a problem while trying to get data from my server using jquery\'s ajax function. Here\'s my

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-19 10:51

    Apple has some kind of external URL block in place.

    In your Info.plist you need to have the key AllowNetworkAccess set to true.

    allowNetworkAccess
    
    

    Your code works in Safari because it is not constrained in the dashboard sever and it is not standards complient in that it DOES allow cross site AJAX. FF IS standards complient in that it DOES NOT allow cross site ajax.

提交回复
热议问题