Cross-Origin resource sharing and file://

前端 未结 2 812
面向向阳花
面向向阳花 2020-12-03 11:42

I am writing an HTML5 application that is gathering data from a few different sources using JSONP. Anything I\'m doing with a GET works perfectly. I\'m now trying to POST

2条回答
  •  离开以前
    2020-12-03 12:21

    This Javascript library can almost certainly help you:

    http://easyxdm.net/

    easyXDM is a Javascript library that enables you as a developer to easily work around the limitation set in place by the Same Origin Policy, in turn making it easy to communicate and expose javascript API’s across domain boundaries.

    ..

    At the core easyXDM provides a transport stack capable of passing string based messages between two windows, a consumer (the main document) and a provider (a document included using an iframe). It does this by using one of several available techniques, always selecting the most efficient one for the current browser. For all implementations the transport stack offers bi-directionality, reliability, queueing and sender-verification.

提交回复
热议问题