CN103023790A - Method and system used for realizing cross-domain interactive access - Google Patents

Method and system used for realizing cross-domain interactive access Download PDF

Info

Publication number
CN103023790A
CN103023790A CN2012105901537A CN201210590153A CN103023790A CN 103023790 A CN103023790 A CN 103023790A CN 2012105901537 A CN2012105901537 A CN 2012105901537A CN 201210590153 A CN201210590153 A CN 201210590153A CN 103023790 A CN103023790 A CN 103023790A
Authority
CN
China
Prior art keywords
server
content
web
domain
javascript
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012105901537A
Other languages
Chinese (zh)
Inventor
尹彦明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN2012105901537A priority Critical patent/CN103023790A/en
Publication of CN103023790A publication Critical patent/CN103023790A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a system used for realizing cross-domain interactive access. The method includes that JavaScript in a first web application of a first server sends a request to obtain content in a second server to a Java interface, wherein the first server belongs to a first domain, the second server belongs to a second domain different from the first domain; the Java interface obtains the content in a second web application from the second server according to the request; the JavaScript in the first web application dynamically creates a tag with domain crossing capability and sets content of the tag to be the obtained content in the second web application; and the first web application interacts with JavaScript in the created tag through the JavaScript of the first web application.

Description

A kind of method and system for realizing the cross-domain alternation access
Technical field
The present invention relates to cross-domain alternation access, more specifically, relate to the method that a kind of label that has a cross-domain ability by dynamic creation is realized the cross-domain alternation access.
Background technology
Along with the development of network technology, Web uses the demand of cross-domain access also more and more.Territory (Domain) is the unit of independent operating in the window networking, the mutual access relation that need to break the wall of mistrust between the territory.Trusting relationship is the bridge that is connected between territory and the territory.After trusting relationship has been set up in a territory and other territories, not only can mutually manage on demand between two territories, can also the inter-network allocate file and the device resource such as printer, make the sharing and management of realizing Internet resources between the different territories.
Yet, because the security limitations of browser, stop the script that loads from a territory to obtain or operate document properties on another territory with source policy.For document or the script access that prevents from loading from address or the attribute that the document that loads from the another one address is set with source policy.That is to say that the territory of the URL that is asked must be identical with the territory of the current Web page.This means that browser isolation is from the content of homology not, to prevent the operation between them.Fig. 1 schematically shows the concept map of cross-domain access.As shown in fig. 1, if aa.com need to ask the resource under the same domain name aa.bb.com, then this request allows.Yet, if aa.com need to ask the resource under the different domain name bb.com, so just consisted of cross-domain request (that is to say, the server outside the server at script place is accessed), browser can be refused the request to the resource of bb.com.
Be subject to the impact with source policy, cross-domain resource is shared and will be restricted, but cross-domain access resources is favourable.For example, request can be shared different servers, alleviate individual server pressure to improve response speed; And different service logics can be distributed on the different servers to reduce load.Usually realize that with agency, document.domain scheme or with the WebSocket scheme among the HTML5 cross-domain alternation accesses in the prior art.
Realize that with the agency principle of cross-domain alternation access is agency of server configuration, thereby directly ask the web services that needs without server, ask web services but go for by the agency, and then the result is turned back to server.Fig. 2 schematically illustrates and utilizes the agency to realize the view of cross-domain access in the prior art.As shown in Figure 2, at first initiate request by client to the agency, the agency initiates request to web server after receiving request.Then, web services receives, processes this request, and the result is returned the agency.At last, the agency returns the result to client.According to circumstances, can be at the equal Configuration Agent of client and web server two ends.For example, be CN101615179A at publication number, be entitled as the patent application of " method and system that is used for the cross-domain alternation that web uses ", in the situation of the equal Configuration Agent of client and web server two ends, undertaken alternately by refreshing back and forth the page with the mode of a hiding iframe by submission of sheet, this scheme is emphasized the transmission of data and processing and has only been solved cross-domain web data interaction problem.Although use agency's this method to use extensively, underaction and can be subject to the restriction of server performance.
In addition, the document.domain scheme is by revising territory (domain) attribute of document, so that can communicate by letter between territory and subdomain or different subdomain.Thinking that with domain policy territory and subdomain are under the jurisdiction of different territories, is different territories such as www.a.com and sub.a.com, and at this moment, we can't call the JavaScript(JS that defines among the sub.a.com in the page under the www.a.com) method.But when us the domain attribute of their document all is revised as a.com, browser will think that they are under the same territory, and we have communicated by letter at the method that just can call mutually the other side so.Using JS to arrange needs the document.domain of two mutual webpages identical.Realize JS script access each other.The defective of this scheme is the application between the second level domain that can only be applied under the same territory, and namely main territory is identical and in the situation that second level domain is different, and can not use under diverse two territories.In addition, after a website was attacked, another website can cause security breaches.
In addition, can also use WebSocket among the HTML5.The defective of this scheme is to use in minority is supported the browser of HTML5, and does not support the main flow browser that IE6/IE7/IE8 is such.
Therefore, for make web use can other territories of dynamic access data and service, need a kind of method and system that can realize safer, easily the cross-domain alternation access.
Summary of the invention
Realize that the cross-domain access of JS need to solve following problem: how dynamically to obtain the data in the cross-domain services device; Establishing label and the content of label is set how is in order to guarantee good browser compatibility; And the address that how to guarantee to quote in the content of label external file is effective.
The objective of the invention is to break through, browser to JS (JavaScript) in same area (domain name (Domain Name) not, upper a certain the computer of Internet that is formed by a string name of separating with point or the title of calculating unit) between the security limitations of accessing, provide a kind of seamless in same area scene not (for example, the A page in the a.com territory uses iframe to embed the B page in the b.com territory, and the A page will be accessed the variable of the JS in the B page or method etc.) realize the solution of the seamless interactive access of JS.This programme uses the thought dynamically play up such as the label of iframe, and the cross-domain restriction of crossing browser realizes the seamless access of cross-domain JS.From realizing that angle the present invention includes three cores.
First, adopt the JS dynamic creation to have the label (such as iframe) of cross-domain ability rather than the iframe in the traditional html mark, the benefit of doing like this is that the content in the label can be controlled by JS, do not need to obtain by traditional src attribute, browser can think that this label of dynamic creation and the webpage at its place are under the same territory, does not have the problem of cross-domain access.
The second, employing java interface grasps the content in the cross-domain web application, and converts the relative path in the content to absolute path.Relative path refers to file on the homepage or catalogue with respect to the path of certain benchmark catalogue, relative path be the path by this file place that cause with path relation other file or folder; And absolute path refers to file on the homepage or catalogue real path on hard disk, and absolute path is the description document position intactly.
The 3rd, JS adopts the mode of JSON to remove to call the java interface, because java interface and JS are deployed in not under the same area.Preferably, can pass through JSONP(JSON with Padding, have the JSON of filler) realize crossing over communication, in order to obtain the data that the java interface returns.JSONP is a kind of " the use pattern " of data formats JSON, can realize that by this pattern the cross-domain of data obtains.
According to one embodiment of present invention, a kind of method for realizing the cross-domain alternation access is provided, described method comprises: sent obtaining the request of the content in the second server to the Java interface by the JavaScript in the web application of first server, described first server belongs to the first territory, and described second server belongs to second territory different from the first territory; Described Java interface obtains described the 2nd web content using based on described request from described second server; JavaScript dynamic creation in being used by a described web has described the 2nd web that the content of the label of cross-domain ability and described label is set to the obtain content in using; And used by its JavaScript and JavaScript in the label that creates by a described web and to be undertaken alternately.
Preferably, obtaining described the 2nd web content using from described second server comprises: come to obtain the content of described the 2nd web using from described second server by the file that described content is packaged into the JavaScript form.
Preferably, the content of obtaining the 2nd web application from second server further comprises: conversion process is carried out in the path to described content.
Preferably, the content of obtaining is kept in the described first server.
Preferably, described label is iframe.
Preferably, described label is script.
Preferably, described request realizes by JSON or JSONP.
According to another embodiment of the invention, a kind of system for realizing the cross-domain alternation access is provided, described system comprises: first server, described first server comprises that a web uses, described first server belongs to the first territory, and described first server is configured to be sent obtaining the request of the content in the described second server to the Java interface by the JavaScript in the web application of described first server; Java interface, described Java interface are configured to obtain the content of the 2nd web using based on described request from second server; Second server, described second server comprises that the 2nd web uses, described second server belongs to second territory different from described the first territory, and a wherein said web uses described the 2nd web that content that JavaScript dynamic creation in being configured to be used by a described web has the label of cross-domain ability and described label is set to the obtain content in using; And used by its JavaScript and JavaScript in the label that creates by a described web and to be undertaken alternately.
Described Java interface further is configured to: come to obtain described the 2nd web content using from described second server by the file that described content is packaged into the JavaScript form.
Described Java interface further is configured to: conversion process is carried out in the path to described content.
Described Java interface further is configured to: the content of obtaining is kept in the described first server.
Description of drawings
Accompanying drawing illustrates embodiments of the invention, and is used from explanation principle of the present invention with specification one.In the accompanying drawings:
Fig. 1 schematically illustrates the concept map of cross-domain access.
Fig. 2 schematically illustrates and utilizes the agency to realize the view of cross-domain access in the prior art.
Fig. 3 schematically illustrates the system of the cross-domain access of realization according to an embodiment of the invention and the view of workflow thereof.
Fig. 4 schematically illustrates the system of the cross-domain access of realization according to another embodiment of the invention and the view of workflow thereof.
Fig. 5 schematically illustrates the flow chart of the method that realizes according to an embodiment of the invention cross-domain access.
Embodiment
The present invention is based on dynamic creation and have the label of cross-domain ability and the thought of dynamic rendering content, realized JS script mutual function between the webpage under two diverse territories, reach with the same area situation under identical seamless cross-domain alternation experience, solve the problem of cross-domain JS access, thereby solved Key technique problem for the cooperation between two Web projects of same area not.
As is known to persons skilled in the art, whether cross-domain judgment rule for the three is compared: domain name, agreement, port; If have among the three one not identical, then Cross-domain problem can appear.In the present invention, the cross-domain domain name difference that is commonly referred to as.In simple terms, the javascript code that cross-domain access refers to the A website attempts to access the B website that is in the same area not, comprises and submits content to and obtain content.JavaScript is a kind of object-based script, is used for exploitation based on client with based on the Internet application program of server, can be used for creating client script, is called JS for short.
Although browser acquiescence has been forbidden cross-domain access, does not forbid quoting in the Web page JS file in other territories, and can freely carry out function (comprise and operate cookie, Dom etc.) in the JS file of introducing.That is to say that if the A website loads Javascript from the B website, the content of this Javascript can freely be accessed in the A website, can't think cross-domain access by viewed device.Moreover, we find that also every the having label of " src " this attribute all has cross-domain ability, such as<script 〉,<img 〉,<iframe 〉.Alternatively, the src attribute not necessarily must be the JS file of an existence, also can be a URL, as long as what return is that the response of a javascript type is just passable.Therefore, in order to realize cross-domain alternation, we can be by managing at remote server client can be called and further processing said data.
For example, as is known to persons skilled in the art, because JSON(JavaScript Object Notation) pure character data format can be succinct the description complex data and JSON also by the primary support of JS, so JSON can at random process in client the data of this form.Therefore, the web client can be by calling the JS formatted file (generally take JSON as suffix) that dynamically generates on the cross-domain services device with the living mode of invoke script.Obviously, why server will dynamically generate the JSON file, and purpose is packed into the data that client needs into regard to being.
Client has also just obtained own required data after calling successfully to the JSON file, remaining is exactly processes and represented according to own demand.Alternatively, for the ease of the client usage data, can use JSONP(JSON with Padding).JSONP is a unofficial agreement, and its allows to be back to client in the integrated script tag of server end (Script tags), and the form by javascript call back function (callback) realizes cross-domain access.That is to say, JSONP allows the user that a callback parameter is passed to service end, then this callback parameter can be wrapped the JSON data as function name during the service end return data, the client function that just can arbitrarily customize oneself has been processed return data automatically like this.
Therefore, utilization such as<script 〉,<img,<iframe etc. have a label of cross-domain ability, the file that at first is packaged into the JS form by the content with the cross-domain B page according to embodiment of the present invention obtains the content of the B page, then the content with the cross-domain B page that obtains is included in the local A page, realizes thus the cross-domain alternation access.
For example, according to one embodiment of present invention, at first obtain the content of the cross-domain B page by the file that utilizes JSONP that the content of the cross-domain B page is packaged into the JS form, then by in the local A page, using iframe element of JS dynamic creation, and dynamically the content of B webpage is set to the content of iframe, so that browser thinks that the A page and iframe are under same territory.Wherein the content among the iframe is consistent with the content of the B page, thereby has reached from the side the purpose that JS accesses mutually between two pages.
Alternatively, according to another embodiment of the invention, also can be fully cross-domain mutual by realizing with JS dynamic creation script, make it possible to the file that content by the cross-domain page that will ask is packaged into the JS form the cross-domain page is included in the local page, thereby realize cross-domain access.
Describe the system and the workflow thereof that are used for realizing cross-domain access of embodiments of the invention in detail below in conjunction with Figure of description.
Fig. 3 schematically illustrates the system 300 of the cross-domain access of realization according to an embodiment of the invention and the view of workflow thereof.As shown in Figure 3, system 300 comprises server 302 and server 304, and wherein server 302 provides service and/or the data that belong to territory A, and server 304 provides service and/or the data of the territory B that belongs to different from territory A.For example, server 302 can be website a.com, and server 304 can be website b.com.In this embodiment of the present invention, server 302 and server 304 both can be two entities independently physically, also can be two web servers independently in logic, and both provide respectively and belong to the not service/data of same area.
As shown in Figure 3, when the web that wants to access the server 304 that belongs to territory B as the user used content in 308, the web that belongs to territory A used 306 and will be called and run on the browser of client.It is a kind of application based on web that web uses, and refers to user interface and resides in any application program in the web-browsing device, and it is the set that some web webpages and being used for are finished other resources of some task.It is the product of user terminal/server framework that web uses, it can be by network so that client and server communicate.For example, common chatroom, forum etc. all are that web uses.Web uses 306 and can intercom mutually with server 302, because they belong to identical territory.
Then, in step 1, the JS that web uses in 306 sends obtaining the request of the content in the server 304 that belongs to territory B to Java interface 310.This request can by for example can be in office why not with the territory between the JSONP that calls realize.JSONP is a unofficial agreement, and its allows to be back to client in the integrated script tag of server end (Script tags), and the form by the javascript call back function realizes cross-domain access.Yet, it will be understood by those skilled in the art that the request of can also realizing with other mode, for example, opening API etc.
Then, in step 2, Java interface 310 is subordinated to territory B based on this request after receiving this request server 304 obtains its web and uses the content in 308 and according to circumstances the relative path of content is carried out conversion process.Content in the web application 308 of obtaining is packaged into the file of JS form.According to one embodiment of present invention, the Java interface can grasp web with httpclient and use content in 308.The http protocol access that httpclient provides convenience is so that we can obtain at an easy rate the source code of certain webpage and be kept at this locality.Alternatively, also can grasp web with other technologies and use content in 408, for example, htmlparser etc.
The conversion in described path for example is to convert the relative path that web uses the content in 308 to absolute path, in order to can obtain content according to absolute path.Relative path is the directory path of webpage position as setting up out with reference to the basis take reference document.Therefore, when the webpage that is stored in different directories is quoted same file, employed path will be not identical, so be referred to as relatively.Absolute path is as the directory path with reference to the basis take Web website root.Why be called definitely, mean when all webpages are quoted same file, employed path all is the same.Not existing together of absolute path and relative path in fact, when only being to describe directory path, the reference point that adopts is different.Because for All Files on the website, this reference point All Files of root all is the same, therefore, use the path description mode take root as reference point just can be referred to as absolute path.
In step 3, after the content in the web application 308 that will obtain was kept at server 302, the web that the JS dynamic creation iframe in the web application 306 and the content of iframe are set to obtain used the content in 308.
The iframe object also can be called as embedded element or embedded frame, and it can be embedded in framework and the content of a webpage in the existing html web page, as a subwindow of existing html web page.Iframe can be embedded into the arbitrary portion in the html web page.An its large feature is, the html file that iframe quotes is not and the separate demonstration of other html file, but can directly be embedded in the html file, but these two html files are separate, both be regarded as complete file, rather than regard one of them as another a part.In addition, iframe can also repeatedly show same content in the different pages, and needn't rewrite this content.The size of iframe is adjustable.
After in step 3, being included in the content in the web application 308 among the iframe, because iframe and server 302 belong to identical territory A, so the web in step 4 server 302 uses 306 and can use 306 JS and the JS among the iframe by web and come alternately mutually to call variable or method etc., thereby has realized the cross-domain alternation access.
Fig. 4 schematically illustrates the system 400 of the cross-domain access of realization according to another embodiment of the invention and the view of workflow thereof.As shown in Figure 4, system 400 comprises server 402 and server 404, and wherein server 402 provides service and/or the data that belong to territory A, and server 404 provides service and/or the data of the territory B that belongs to different from territory A.For example, server 402 can be website a.com, and server 404 can be website b.com.In this embodiment of the present invention, server 402 and server 404 both can be two entities independently physically, also can be two web servers independently in logic, and both provide respectively and belong to the not service/data of same area.
As shown in Figure 4, when the web that wants to access the server 404 that belongs to territory B as the user used content in 408, the web that belongs to territory A used 406 and will be called and run on the browser of client.Web uses 406 and can intercom mutually with server 402, because they belong to identical territory.
Then, in step 1, the JS that web uses in 406 sends obtaining the request of the content in the server that belongs to territory B to Java interface 410.This request can by for example can be in office why not with the territory between the JSONP that calls realize.JSONP is a unofficial agreement, and its allows to be back to client in the integrated script tag of server end (Script tags), and the form by the javascript call back function realizes cross-domain access.Yet, it will be understood by those skilled in the art that the request of can also realizing with other mode, for example, opening API etc.
Then, in step 2, Java interface 410 is subordinated to territory B based on this request after receiving this request server 404 obtains its web and uses the content in 408 and according to circumstances the relative path of content is carried out conversion process.Content in the web application 408 of obtaining is packaged into the file of JS form.The conversion in described path for example is to convert the relative path that web uses the content in 408 to absolute path, in order to can obtain content according to absolute path.According to one embodiment of present invention, the Java interface can be used and grasp web such as httpclient and use content in 408.Alternatively, also can grasp web with other technologies and use content in 408, for example, htmlparser etc.
In step 3, after content in the web application 408 that will obtain is kept at server 402, the web that JS dynamic creation script in the web application 406 and the content of script are set to obtain uses the content in 408, so that the content that cross-domain web is used in 408 is included in the local web application 406.
After in step 3, being included in the content in the web application 408 in the local web application 406, because script and server 402 belong to same area A, so the web in step 4 server 402 uses 406 and can use 406 JS and the JS among the script by web and come alternately mutually to call variable or method etc., thereby has realized the cross-domain alternation access.
Fig. 5 schematically illustrates the flow chart of the method 500 that realizes according to an embodiment of the invention cross-domain access.As shown in Figure 5, in step 504, the JS during the web that belongs to territory A server uses sends obtaining the request of the content in the server that belongs to territory B to the Java interface.In step 506, the Java interface is subordinated to territory B based on this request after receiving this request server obtain its web in using content and according to circumstances the relative path of content is carried out conversion process.In step 508, the content during the web in the B territory that the JS dynamic creation label during the web among the A of territory uses and the content of this label are set to obtain uses.Then, in step 510, the web among the A of territory uses and can be undertaken alternately by the JS in its JS and the label that creates.At last, method 500 finishes.
In addition, in the situation of using the WebSocket technology to communicate, also can adopt thought of the present invention.For example, can be by using JS dynamic creation WebSocket object, realize fully cross-domain alternately by transmitting-receiving WebSocket message, wherein, resolve message content and still call the JS method.Yet this scheme can only be used in the browser of supporting the HTML5 new features, and has that poor compatibility, performance are low, the shortcoming of complex operation.
The solution of the present invention possesses enough fail safes.For example, the voucher (for example, the user name and password) that the web that the user uses uses the territory at place is retained in this locality, does not belong to aiming field (namely and can not be passed to, the territory at the data place of the service that need to call or access) server end, thus guaranteed the fail safe of local critical data.
Not only can be applicable to the file resource of primary and secondary domain name according to the cross-domain alternation of embodiment of the present invention, and can be applicable to the cross-domain alternation of non-primary and secondary domain name.What the present invention is directed to is that cross-domain JS is mutual and call, the cross-domain restriction of crossing browser by the content that dynamically arranges the label with cross-domain ability, thereby realize with the same area situation under identical seamless JS interactive experience.Therefore, data acquisition of the present invention has been pulled to front end JS, and has walked around server, thereby has saved the service end resource overhead.In addition, because data are directly mutual in client, so speed is also the fastest.
Above-described embodiment only is the preferred embodiments of the present invention, is not limited to the present invention.It will be apparent for a person skilled in the art that in the situation that does not break away from the spirit and scope of the present invention, can carry out various modifications and change to embodiments of the invention.Therefore, the invention is intended to contain modification or the modification that falls into as within the scope of the present invention that claim limits all.

Claims (14)

1. one kind is used for the method that the realization cross-domain alternation is accessed, and described method comprises:
Sent obtaining the request of the content in the second server to the Java interface by the JavaScript in the web application of first server, described first server belongs to the first territory, and described second server belongs to second territory different from the first territory;
Described Java interface obtains described the 2nd web content using based on described request from described second server;
JavaScript dynamic creation in being used by a described web has described the 2nd web that the content of the label of cross-domain ability and described label is set to the obtain content in using; And
Used by its JavaScript and JavaScript in the label that creates by a described web and to be undertaken alternately.
2. method according to claim 1, wherein, obtaining described the 2nd web content using from described second server comprises: come to obtain the content of described the 2nd web using from described second server by the file that described content is packaged into the JavaScript form.
3. method according to claim 1 and 2, wherein, obtain the content of the 2nd web using from second server and further comprise: conversion process is carried out in the path to described content.
4. method according to claim 3 further comprises: the content of obtaining is kept in the described first server.
5. method according to claim 1 and 2, wherein, described label is iframe.
6. method according to claim 1 and 2, wherein, described label is script.
7. method according to claim 1, wherein, described request realizes by JSON or JSONP.
8. one kind is used for the system that the realization cross-domain alternation is accessed, and described system comprises:
First server, described first server comprises that a web uses, described first server belongs to the first territory, and described first server is configured to be sent obtaining the request of the content in the second server to the Java interface by the JavaScript in the web application of described first server;
Java interface, described Java interface are configured to obtain the content of the 2nd web using based on described request from second server;
Second server, described second server comprise that the 2nd web uses, and described second server belongs to second territory different from described the first territory;
A wherein said web uses described the 2nd web that content that JavaScript dynamic creation in being configured to be used by a described web has the label of cross-domain ability and described label is set to the obtain content in using; And used by its JavaScript and JavaScript in the label that creates by a described web and to be undertaken alternately.
9. system according to claim 8, wherein, described Java interface further is configured to: come to obtain the content of described the 2nd web using from described second server by the file that described content is packaged into the JavaScript form.
10. according to claim 8 or 9 described systems, wherein, described Java interface further is configured to: conversion process is carried out in the path to described content.
11. system according to claim 10, described Java interface further is configured to: the content of obtaining is kept in the described first server.
12. according to claim 8 or 9 described systems, wherein, described label is iframe.
13. according to claim 8 or 9 described systems, wherein, described label is script.
14. system according to claim 8, wherein, described request realizes by JSON or JSONP.
CN2012105901537A 2012-12-31 2012-12-31 Method and system used for realizing cross-domain interactive access Pending CN103023790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105901537A CN103023790A (en) 2012-12-31 2012-12-31 Method and system used for realizing cross-domain interactive access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105901537A CN103023790A (en) 2012-12-31 2012-12-31 Method and system used for realizing cross-domain interactive access

Publications (1)

Publication Number Publication Date
CN103023790A true CN103023790A (en) 2013-04-03

Family

ID=47971935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105901537A Pending CN103023790A (en) 2012-12-31 2012-12-31 Method and system used for realizing cross-domain interactive access

Country Status (1)

Country Link
CN (1) CN103023790A (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870551A (en) * 2014-02-28 2014-06-18 小米科技有限责任公司 Method and device for obtaining cross-domain data
CN104391909A (en) * 2014-11-17 2015-03-04 国云科技股份有限公司 Cross-domain IFRAME height self-adaption method
CN104426862A (en) * 2013-08-27 2015-03-18 腾讯科技(深圳)有限公司 Method, system, and browser realizing cross-domain request login
CN105335474A (en) * 2015-09-29 2016-02-17 广州酷狗计算机科技有限公司 Method and device for obtaining content
CN105812323A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Method and device for accessing data by crossing network domains
CN105991599A (en) * 2015-02-26 2016-10-05 阿里巴巴集团控股有限公司 JSONP (JavaScript Object Notation with Padding) request method and device
CN106162367A (en) * 2015-04-21 2016-11-23 广州市动景计算机科技有限公司 A kind of video broadcasting method and device
CN106202531A (en) * 2016-07-22 2016-12-07 浪潮(北京)电子信息产业有限公司 The method and device that a kind of Flex and Html data interact
CN106339441A (en) * 2016-08-22 2017-01-18 浪潮通用软件有限公司 Form calling method, device and system
CN106357591A (en) * 2015-07-16 2017-01-25 中兴通讯股份有限公司 Inter-application data access method and device
CN106375144A (en) * 2016-08-29 2017-02-01 北京知道未来信息技术有限公司 Network tracing method capable of acquiring information in cross-domain way based on JSONP (JavaScript Object Notation with Padding)
WO2017088369A1 (en) * 2015-11-24 2017-06-01 乐视控股(北京)有限公司 Data cross-domain request method, device and system
CN107205013A (en) * 2016-03-18 2017-09-26 阿姆有限公司 Combination for the control interface of multiple communication domains
CN107222580A (en) * 2017-07-28 2017-09-29 郑州云海信息技术有限公司 A kind of method that utilization picture realizes cross-domain transmission data
CN107547557A (en) * 2017-09-14 2018-01-05 广州帕克西软件开发有限公司 A kind of interactive system and method for drawing cross-domain image
CN108038180A (en) * 2017-12-07 2018-05-15 国网四川省电力公司信息通信公司 The method that a kind of power supply region gathered data visualizes
CN109302493A (en) * 2018-11-15 2019-02-01 北京金山云网络技术有限公司 A kind of user information sharing method, device, electronic equipment and storage medium
CN109361752A (en) * 2018-10-30 2019-02-19 红芯时代(北京)科技有限公司 A kind of data transmission method, device, server, system and storage medium
CN109600403A (en) * 2017-09-30 2019-04-09 北京国双科技有限公司 A kind of method and device sending information
CN109672658A (en) * 2018-09-25 2019-04-23 平安科技(深圳)有限公司 Detection method, device, equipment and the storage medium of JSON abduction loophole
CN109960765A (en) * 2019-02-27 2019-07-02 深圳点猫科技有限公司 A kind of language based on programming carries out method, the electronic equipment of cross-domain communication to webpage
CN110321109A (en) * 2019-05-23 2019-10-11 平安普惠企业管理有限公司 Acquisition methods, device, computer equipment and the storage medium of interface service
CN113407383A (en) * 2021-06-30 2021-09-17 迈普通信技术股份有限公司 Main/standby system switching method and device, server and main/standby system
CN113448691A (en) * 2021-08-30 2021-09-28 天津市天房科技发展股份有限公司 Interaction method and device for front-end JavaScript and local Java application
CN113645320A (en) * 2020-05-11 2021-11-12 阿里巴巴集团控股有限公司 Incidence relation establishing method, data interaction method and device
WO2023077999A1 (en) * 2021-11-05 2023-05-11 北京字节跳动网络技术有限公司 Application access control method and apparatus, and computer device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075240A (en) * 2006-08-25 2007-11-21 腾讯科技(深圳)有限公司 Method and system for spanned acquiring data
CN101150559A (en) * 2006-09-21 2008-03-26 阿里巴巴公司 A data exchange method and system for websites
US20080301766A1 (en) * 2007-05-29 2008-12-04 International Business Machines Corporation Content processing system, method and program
CN101662462A (en) * 2008-08-25 2010-03-03 国际商业机器公司 Method and system for supplying fragility protection aiming at cross-domain interaction in operation
CN101674327A (en) * 2009-09-29 2010-03-17 金蝶软件(中国)有限公司 Heterogeneous system message integration method, framework and system
CN102047286A (en) * 2008-06-03 2011-05-04 微软公司 Online AD serving
CN102542017A (en) * 2010-12-17 2012-07-04 微软公司 Rendering source regions into target regions of web pages

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075240A (en) * 2006-08-25 2007-11-21 腾讯科技(深圳)有限公司 Method and system for spanned acquiring data
CN101150559A (en) * 2006-09-21 2008-03-26 阿里巴巴公司 A data exchange method and system for websites
US20080301766A1 (en) * 2007-05-29 2008-12-04 International Business Machines Corporation Content processing system, method and program
CN102047286A (en) * 2008-06-03 2011-05-04 微软公司 Online AD serving
CN101662462A (en) * 2008-08-25 2010-03-03 国际商业机器公司 Method and system for supplying fragility protection aiming at cross-domain interaction in operation
CN101674327A (en) * 2009-09-29 2010-03-17 金蝶软件(中国)有限公司 Heterogeneous system message integration method, framework and system
CN102542017A (en) * 2010-12-17 2012-07-04 微软公司 Rendering source regions into target regions of web pages

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426862A (en) * 2013-08-27 2015-03-18 腾讯科技(深圳)有限公司 Method, system, and browser realizing cross-domain request login
CN104426862B (en) * 2013-08-27 2019-02-22 腾讯科技(深圳)有限公司 Realize method, system and browser that cross-domain request logs in
CN103870551A (en) * 2014-02-28 2014-06-18 小米科技有限责任公司 Method and device for obtaining cross-domain data
CN104391909A (en) * 2014-11-17 2015-03-04 国云科技股份有限公司 Cross-domain IFRAME height self-adaption method
CN105812323A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Method and device for accessing data by crossing network domains
CN105812323B (en) * 2014-12-30 2019-08-27 Tcl集团股份有限公司 A kind of method and apparatus of the cross-domain access data of network
CN105991599A (en) * 2015-02-26 2016-10-05 阿里巴巴集团控股有限公司 JSONP (JavaScript Object Notation with Padding) request method and device
US10523718B2 (en) 2015-04-21 2019-12-31 Guangzhou Ucweb Computer Technology Co., Ltd. Video playing method and device
CN106162367A (en) * 2015-04-21 2016-11-23 广州市动景计算机科技有限公司 A kind of video broadcasting method and device
CN106357591A (en) * 2015-07-16 2017-01-25 中兴通讯股份有限公司 Inter-application data access method and device
CN105335474B (en) * 2015-09-29 2019-03-05 广州酷狗计算机科技有限公司 Content acquisition method and device
CN105335474A (en) * 2015-09-29 2016-02-17 广州酷狗计算机科技有限公司 Method and device for obtaining content
WO2017088369A1 (en) * 2015-11-24 2017-06-01 乐视控股(北京)有限公司 Data cross-domain request method, device and system
CN107205013A (en) * 2016-03-18 2017-09-26 阿姆有限公司 Combination for the control interface of multiple communication domains
CN107205013B (en) * 2016-03-18 2021-06-22 阿姆有限公司 Combination of control interfaces for multiple communication domains
CN106202531A (en) * 2016-07-22 2016-12-07 浪潮(北京)电子信息产业有限公司 The method and device that a kind of Flex and Html data interact
CN106339441A (en) * 2016-08-22 2017-01-18 浪潮通用软件有限公司 Form calling method, device and system
CN106375144A (en) * 2016-08-29 2017-02-01 北京知道未来信息技术有限公司 Network tracing method capable of acquiring information in cross-domain way based on JSONP (JavaScript Object Notation with Padding)
CN106375144B (en) * 2016-08-29 2019-07-30 北京知道未来信息技术有限公司 A kind of network source tracing method based on the cross-domain acquisition information of JSONP
CN107222580A (en) * 2017-07-28 2017-09-29 郑州云海信息技术有限公司 A kind of method that utilization picture realizes cross-domain transmission data
CN107547557A (en) * 2017-09-14 2018-01-05 广州帕克西软件开发有限公司 A kind of interactive system and method for drawing cross-domain image
CN109600403A (en) * 2017-09-30 2019-04-09 北京国双科技有限公司 A kind of method and device sending information
CN108038180A (en) * 2017-12-07 2018-05-15 国网四川省电力公司信息通信公司 The method that a kind of power supply region gathered data visualizes
CN109672658A (en) * 2018-09-25 2019-04-23 平安科技(深圳)有限公司 Detection method, device, equipment and the storage medium of JSON abduction loophole
CN109361752A (en) * 2018-10-30 2019-02-19 红芯时代(北京)科技有限公司 A kind of data transmission method, device, server, system and storage medium
CN109302493A (en) * 2018-11-15 2019-02-01 北京金山云网络技术有限公司 A kind of user information sharing method, device, electronic equipment and storage medium
CN109302493B (en) * 2018-11-15 2021-06-22 北京金山云网络技术有限公司 User information sharing method and device, electronic equipment and storage medium
CN109960765A (en) * 2019-02-27 2019-07-02 深圳点猫科技有限公司 A kind of language based on programming carries out method, the electronic equipment of cross-domain communication to webpage
CN110321109A (en) * 2019-05-23 2019-10-11 平安普惠企业管理有限公司 Acquisition methods, device, computer equipment and the storage medium of interface service
CN110321109B (en) * 2019-05-23 2023-10-20 深圳市融锋科技有限公司 Method, device, computer equipment and storage medium for acquiring interface service
CN113645320A (en) * 2020-05-11 2021-11-12 阿里巴巴集团控股有限公司 Incidence relation establishing method, data interaction method and device
CN113645320B (en) * 2020-05-11 2022-12-20 阿里巴巴集团控股有限公司 Incidence relation establishing method, data interaction method and device
CN113407383A (en) * 2021-06-30 2021-09-17 迈普通信技术股份有限公司 Main/standby system switching method and device, server and main/standby system
CN113407383B (en) * 2021-06-30 2024-02-09 迈普通信技术股份有限公司 Main and standby system switching method and device, server and main and standby system
CN113448691A (en) * 2021-08-30 2021-09-28 天津市天房科技发展股份有限公司 Interaction method and device for front-end JavaScript and local Java application
WO2023077999A1 (en) * 2021-11-05 2023-05-11 北京字节跳动网络技术有限公司 Application access control method and apparatus, and computer device and storage medium

Similar Documents

Publication Publication Date Title
CN103023790A (en) Method and system used for realizing cross-domain interactive access
US9444787B2 (en) Non-intrusive method and apparatus for automatically dispatching security rules in cloud environment
US8341268B2 (en) Resource sharing in multi-principal browser
CN103200212B (en) A kind of method and system realizing distributed conversation under cloud computing environment
CN108200165B (en) Request Transmission system, method, apparatus and storage medium
CN104184832B (en) Data submission method and device in network application
CN104038510B (en) The realization method and system of iOS system Transparent Proxy
CN105379195B (en) Information sharing method and equipment
CN103067417A (en) Web service mapping method and system of security agent in virtual private network (VPN)
US9749202B1 (en) Remote session preview management
JP2012501034A (en) Method and apparatus for cross-domain communication
CN102460391A (en) Systems and methods for providing virtual appliance in application delivery fabric
JP2013210896A (en) Proxy server device, client terminal device, remote access system, transfer control method and program, and access method and program
US8201238B1 (en) Remote directory browsing through a secure gateway of a virtual private network
CN108259435B (en) Method and device for realizing hybrid application of access Web component
JP2014534498A (en) Apparatus, method and computer readable storage medium for protecting JavaScript
CN109788051A (en) Network resource transmission method and system based on distributed file system
CN107710695A (en) A kind of method, corresponding intrument and system for accessing family's NAS device
US9558164B1 (en) Methods and system for converting WSDL documents into XML schema
US10225358B2 (en) Page push method, device, server and system
CN102842006A (en) Access control method of expanding script object as well as access control system and terminal of expanding script object
CN102984179A (en) Cloud-computing operating system oriented method for cross-domain access to Web services
WO2022242023A1 (en) Resource acquisition method and system, webvpn proxy server and server
CN104253703B (en) A kind of method and apparatus of communication
CN105915582B (en) The method and router of router access webpage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130403