CN110300133A - Cross-domain data transmission method, apparatus, equipment and storage medium - Google Patents

Cross-domain data transmission method, apparatus, equipment and storage medium Download PDF

Info

Publication number
CN110300133A
CN110300133A CN201810241240.9A CN201810241240A CN110300133A CN 110300133 A CN110300133 A CN 110300133A CN 201810241240 A CN201810241240 A CN 201810241240A CN 110300133 A CN110300133 A CN 110300133A
Authority
CN
China
Prior art keywords
page
domain
data
aiming field
data transmission
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.)
Granted
Application number
CN201810241240.9A
Other languages
Chinese (zh)
Other versions
CN110300133B (en
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.)
Tenpay Payment Technology Co Ltd
Original Assignee
Tenpay Payment Technology 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 Tenpay Payment Technology Co Ltd filed Critical Tenpay Payment Technology Co Ltd
Priority to CN201810241240.9A priority Critical patent/CN110300133B/en
Publication of CN110300133A publication Critical patent/CN110300133A/en
Application granted granted Critical
Publication of CN110300133B publication Critical patent/CN110300133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention is to belong to field of communication technology about a kind of cross-domain data transmission method, apparatus, equipment and storage medium.The described method includes: first page obtains the second page address in aiming field, wherein first page adheres to different domains separately from second page;According to second page address, hypertext markup language label is created, in first page to open second page in hypertext markup language label;Carried out data transmission by second page and aiming field.Hereby it is achieved that carrying out cross-domain data transmission using the page in front end, to effectively save the time of cross-domain data transmission, so that cross-domain data interaction more convenient and efficient, the user experience is improved.

Description

Cross-domain data transmission method, apparatus, equipment and storage medium
Technical field
The present invention relates to field of communication technology, in particular to a kind of cross-domain data transmission method, apparatus, equipment and storage are situated between Matter.
Background technique
With the development of network technology, Web is also more and more using the demand to cross-domain data transmission.Wherein, Web is applied It is that one kind, as long as its largest benefit is that have browser client to can be used, can not need to pacify by the application program of web access Fill other softwares.
Currently, the web applications client for being typically at the first domain is first to be sent when realizing cross-domain data transmission Data are sent to the corresponding server in the first domain (S01), correspond to so that the corresponding server in the first domain is generated according to above-mentioned data Token (i.e. token) (S02), the token of generation is sent to the web application client in the first domain by the corresponding server in the first domain It holds (S03).It is then in the web application in the first domain, the access request for carrying token is sent to the web in the second domain and is answered With client (S04), when the web applications client when the second domain receives above-mentioned access request, first to above-mentioned access request into To obtain the token carried in access request (S05), the token that then will acquire is sent to the corresponding service in the second domain for row parsing Device (S06), so that the corresponding server in the second domain, according to above-mentioned token, corresponding server side obtains data from the first domain (S07), the web applications client (S08) in the second domain directly can take out data from the server in the second domain later.It is optional such as Shown in Fig. 1.
However, it is found by the inventors that not only being needed in not same area when realizing cross-domain data transmission using aforesaid way Background server of the web applications client respectively with affiliated domain interacts, and the transmission needs of critical data pass through backstage Server is realized, so that the transmission process of cross-domain data, not only needs the degree of coupling with higher between client and server, and And it needs to spend longer time, poor user experience.
Summary of the invention
The embodiment of the present invention is intended to solve at least some of the technical problems in related technologies.
For this purpose, the embodiment of the present invention provides a kind of cross-domain data transmission method, this method comprises:
First page obtains the second page address in aiming field, wherein the first page and the second page point Belong to different domains;
According to the second page address, hypertext markup language label is created in the first page, described The second page is opened in hypertext markup language label;
Carried out data transmission by the second page and the aiming field.
The embodiment of the present invention provides a kind of cross-domain data transmission device, which includes:
Obtain module, obtain the corresponding second page address of aiming field for first page, wherein first page with it is described Second page adheres to different domains separately;
Creation module, for creating hypertext markup language in the first page according to the second page address Label, to open the second page in the hypertext markup language label;
Data transmission module, for being carried out data transmission by the second page and the aiming field.
The embodiment of the present invention provides a kind of computer equipment, which includes:
Memory and processor, the memory are stored with computer program, when the processor executes described program Realize the cross-domain data transmission method.
The embodiment of the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, the program quilt When processor executes, the cross-domain data transmission method is realized.
Cross-domain data transmission method, apparatus, computer equipment and storage medium provided in an embodiment of the present invention, carry out across When numeric field data is transmitted, first page obtains the second page address in aiming field first, then according to second page address, the Hypertext markup language label is created in one page then to pass through to open second page in hypertext markup language label Second page carries out data transmission with aiming field.Hereby it is achieved that cross-domain data transmission is carried out using the page in front end, to have Effect saves the time of cross-domain data transmission, so that cross-domain data interaction more convenient and efficient, the user experience is improved.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 be in the prior art belonging to the web of not same area apply data interaction schematic diagram when realizing cross-domain access;
Fig. 2 is the schematic diagram of a scenario of cross-domain data transmission provided by the embodiments of the present application;
Fig. 3 is the flow diagram of cross-domain data transmission method shown according to an exemplary embodiment;
Fig. 4 is the flow diagram of cross-domain data transmission method shown according to an exemplary embodiment;
Fig. 5 is that first page shown according to an exemplary embodiment passes through second page to second page write-in data Schematic diagram;
Fig. 6 is that first page shown according to an exemplary embodiment passes through session memory block of the second page to aiming field The schematic diagram of middle write-in data;
Fig. 7 is schematic diagram of a scenario corresponding with Fig. 6;
Fig. 8 is the flow diagram of cross-domain data transmission method shown according to an exemplary embodiment;
Fig. 9 is that first page shown according to an exemplary embodiment passes through second page from second page reading data Schematic diagram;
Figure 10 is that first page shown according to an exemplary embodiment is stored by second page from the session of aiming field The schematic diagram of data is read in area;
Figure 11 is the structural schematic diagram of cross-domain data transmission device shown according to an exemplary embodiment;
Figure 12 is the structural schematic diagram of cross-domain data transmission device shown according to an exemplary embodiment;
Figure 13 is the structural schematic diagram of cross-domain data transmission device shown according to an exemplary embodiment;
Figure 14 is the structural schematic diagram of computer equipment shown according to an exemplary embodiment;
Figure 15 is the structural schematic diagram of computer equipment shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the present invention will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of the inventive concept in any manner with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate idea of the invention.
Optional embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
When various embodiments of the present invention carry out cross-domain data transmission for existing web application, not only need in not same area In web applications client server corresponding with affiliated domain interacts respectively, and critical data transmission needs pass through Background server is realized, so that the transmission process of cross-domain data, not only needs with higher between client and server couple The problem of degree, and needs to spend the more time, poor user experience, proposes a kind of cross-domain data transmission method.
Cross-domain data transmission method provided in an embodiment of the present invention, first page is when progress cross-domain data is handed down from ancient times, first The corresponding second page address of aiming field is obtained, wherein first page adheres to different domains separately from second page, then according to second Page address creates hypertext markup language label, in first page to open second in hypertext markup language label The page, later, first page can directly be carried out data transmission by second page with aiming field.Hereby it is achieved that in front end Cross-domain data transmission is carried out using the page, so that the time of cross-domain data transmission is effectively saved, so that cross-domain data interaction is more Add convenient and efficient, the user experience is improved.
Fig. 2 is combined first below, the usage scenario of cross-domain data transmission method provided by the embodiments of the present application is carried out detailed It describes in detail bright.
In practical application, in order to improve the user volume of each application, it would generally be provided in the customer terminal webpage respectively applied The access label that it is applied, so that user can directly open another application in a certain applications client page, if two are answered It is different with affiliated domain, cross-domain data transmission will be generated at this time.
For example, as shown in Fig. 2 (a), in the Client browse page A (http://aa.com) of the domain A Web application, Access label including the domain B page B (http://bb.com), if user in browsing pages A, clicks page B, at this time in B When the login page B of domain, if the log-on message of the current simultaneously no user in the domain B, needs to obtain the log-on message of user from the domain A, that is, exists It needs to carry out cross-domain data transmission between page A and page B.
At this point, the B page in the Web applications client in the domain B can be first according to the A page in the domain A as shown in Fig. 2 (b) Address, in the B page create hypertext markup language (iframe) label, in iframe label open the A page, due to Iframe label be inline frame label, therefore in the B page in the form of iframe label open the A page after, the B page Directly carry out data transmission with the A page.For example the B page sends the request for obtaining log-on message, later, the A page to the A page first Log-on message can be obtained (in figure by taking session Storage as an example) in its affiliated domain, and returns to the B page.
Since log-on message is generally stored inside in the Cookies in the affiliated domain of the A page or session memory block (session Storage it in), therefore can directly be obtained from the corresponding Cookies or session Storage in A page domain belonging to local Log-on message is taken, without requesting to the server in the domain A.It can thus be seen that in cross-domain data provided by the embodiments of the present application Transmission method is interacted when carrying out cross-domain data transmission without client and server, and directly passes through customer terminal webpage Cross-domain data transmission can be realized, to improve the speed of cross-domain data transmission, save the time of cross-domain data transmission.
It is understood that the Web applications client in the above-mentioned domain A and the Web applications client in the domain B are located at same terminal In.In one embodiment, terminal can be mobile terminal, and mobile terminal may include mobile phone, tablet computer, notebook electricity At least one of brain, personal digital assistant and wearable device etc..In another embodiment, terminal can also be desk-top meter The equipment such as calculation machine.
With reference to the accompanying drawing, to cross-domain data transmission method, apparatus, equipment and storage medium provided by the embodiments of the present application It is described in detail.
Fig. 3 is combined first, and cross-domain data transmission method provided in an embodiment of the present invention is described in detail.
Fig. 3 is the flow diagram of cross-domain data transmission method shown according to an exemplary embodiment.
As shown in figure 3, the cross-domain data transmission method may comprise steps of:
Step 201, first page obtains the second page address in aiming field, wherein first page and second page point Belong to different domains.
Optionally, cross-domain data transmission method provided in an embodiment of the present invention, can be by meter provided in an embodiment of the present invention Machine equipment is calculated to execute.Wherein, cross-domain data transmission device is provided in computer equipment, cross-domain data transmission device can be matched It sets in any Web applications client, so that the Web applications client can realize cross-domain data transmission in front end.
Wherein, in the present embodiment, first page, second page respectively refer to any page in different web applications.It can be with Understand, the cross-domain data transmission method in the present embodiment can be by the Web in the affiliated domain of first page in computer equipment Applications client executes, below with " first page " Lai Zhidai " the Web applications client in the affiliated domain of first page ", " Two pages " Lai Zhidai " the Web applications client in the affiliated domain of second page ".
In the present embodiment, first page refers to the page in the Web applications client for initiating cross-domain data transmission;Target Domain refers to the first page another domain to be accessed, i.e. other domains except the affiliated domain of first page;Second page can be mesh Any page under domain is marked, alternatively, it is also possible to the data relay page created exclusively for realization cross-domain data transmission, than Such as, each domain can fix the address of its corresponding second page are as follows:/xx/xxx/trans_data.shtml etc., this implementation Example does not do optional restriction to this.
It, can preset other each domains in each Web applications client in advance in a kind of optional way of realization of the application Corresponding second page address, thus after the first page determination aiming field to be accessed, it can be by inquiring preset data, really The second page address to set the goal in domain;Alternatively, the corresponding second page address in other each domains known to each Web applications client Naming method, so that the first page in Web applications client is after the aiming field that determination to be accessed, it can be according to known The naming method of two page addresses determines the second page address etc. in aiming field.It does not limit this herein.
Step 202, according to second page address, hypertext markup language label is created in first page, super literary Second page is opened in this markup language tag.
Wherein, hypertext markup language label can be Iframe label.
Optionally, after getting the corresponding second page address of aiming field, the client in the affiliated domain of first page Iframe label is created in first page, for example, can be by setting second page for the src attribute value of Iframe label Address, by realize in first page in the form of subpage frame Iframe label open second page.Wherein, optionally, exist When opening second page in first page, second page is sightless.
Step 203, carried out data transmission by second page and aiming field.
It should be noted that the number in aiming field can be directly acquired since second page is the page in aiming field According to, or to aiming field write-in data, and second page is the iFrame label in first page again, and iFrame label is interior Join box label, can make directly to carry out data transmission between the page of the page and its direction where iFrame label, therefore, After opening second page in the form of Iframe label in first page, first page can directly and second page Carry out data transmission, i.e., first page can carry out data transmission with aiming field.Wherein, data transmission may include obtaining data And propelling data.
Correspondingly, above-mentioned steps 203 are specifically included according to the direction that data are transmitted:
Data are read from the aiming field by the second page.
Alternatively,
Data are sent to the second page, so that the data are written belonging to the second page second page Aiming field in.
It should be noted that can wrap the script containing specific function in second page, so that second page be allow to hold Row reads data from aiming field belonging to second page, or the specific of aiming field is written in the data obtained from first page The operation of position.
In the embodiment of the present application, if first page will obtain data from aiming field, marked in first page with Iframe After the form of label opens second page, first page can send data acquisition request to second page, and second page is later Data can be directly read from its affiliated domain, and then the data of reading are transmitted directly to first page.To only pass through front end Interaction, is achieved that cross-domain data transmission, saves the time of cross-domain data transmission, improve user experience.
It should be noted that first page is to after second page request data, second page can be directly from its local institute Belong to and being obtained in domain, it can also be by being requested from the corresponding server in the affiliated domain of second page.
For example, if the first page data to be obtained, be present in the affiliated domain of second page cookie, In localstorage or session Storage, then second page can directly read its affiliated domain in local terminal Cookie, localstorage or session Storage, to obtain the data.
Generally, due to the data storage that session Storage is for a session, after user closes window Or when not operating to the window in preset duration, data can be deleted;Data in localStorage have always Effect, window or browser closing also save always;Data in cookie only before the cookie expired time of setting always Effectively, even if window or browser are closed.Therefore, first page can also be according to the storage characteristics of all types of data, by certain Access order, successively access various data.
It, can be in first page if first page sends data to aiming field in a kind of way of realization of the present embodiment After opening second page in the form of iFrame, data to be sent are directly sent to second page.Second page later The data received can be stored in session storage, local storage etc. by face.
Optionally, in order to guarantee between first page and aiming field transmit data safety, the present embodiment first page Between second page, it can be carried out data transmission by postMessage mode.
When optional realization, white list can be arranged for postMessage in first page, to be counted with second page Before transmission, first judge aiming field whether in white list, if, it is determined that aiming field is legal, and then passes through second page again Face carries out data transmission with aiming field.
In a kind of optional way of realization, before iFrame label being created in first page, second is first judged Whether aiming field belonging to the page is in white list.In another optional way of realization, it can also be created in first page It builds iFrame label and then judges aiming field belonging to second page whether in white list.In another optional realization In form, different white lists can also be set according to the data type or quantity of cross-domain transmission.For example, the domain A is The white list X of postMessage setting carries out legitimacy verifies when log-on message for the data to cross-domain transmitting, is arranged White list Y, for the data of cross-domain transmitting are " payment " information when carry out legitimacy verifies, and white list X and white list Y In include domain name it is not exactly the same.In this way, when the domain A is when carrying out cross-domain transmission, however, it is determined that the data of current transmission are to log in Information, then may determine that current goal domain whether in white list X, if, log-on message can be passed to aiming field, or Person obtains log-on message from aiming field.
Cross-domain data transmission method provided in an embodiment of the present invention, first page obtain the second page in aiming field first Address creates hypertext markup language label, in hypertext markup language then according to second page address in first page Second page is opened in speech label, is then carried out data transmission by second page and aiming field.Hereby it is achieved that in front end benefit Cross-domain data transmission is carried out with the page, so that the time of cross-domain data transmission is effectively saved, so that cross-domain data interaction is more Convenient and efficient, the user experience is improved.
By above-mentioned analysis it is found that the embodiment of the present invention in first page by creating hypertext markup language label, To open the second page for belonging to aiming field in hypertext markup language label, to be carried out by second page and aiming field Data transmission.Wherein, when first page is carried out data transmission by second page and aiming field, can be by second page to Aiming field propelling data is also possible to obtain data from aiming field by second page.Below with reference to Fig. 4, to above-mentioned first page Face is described in detail by second page to the process of aiming field propelling data.
Fig. 4 is the flow diagram of cross-domain data transmission method shown according to an exemplary embodiment.
As shown in figure 4, the cross-domain data transmission method may comprise steps of:
Step 301, first page obtains the second page address in aiming field, wherein first page and second page point Belong to different domains.
Step 302, according to second page address, hypertext markup language label is created in first page, super literary Second page is opened in this markup language tag, and data-pushing request is sent to aiming field by second page.
Wherein, data-pushing request directly can be sent to second page after opening second page by first page;Or Person directly can also carry data to be pushed in the parameter of Iframe label when creating Iframe label, so that the Two pages can obtain data-pushing request after opening, according to the parameter of Iframe label.
It should be noted that succeeding target domain is to the legitimate verification of first page for convenience, first page is to mesh When marking domain transmission data-pushing request, the identification information of itself can be carried in the request of above-mentioned data-pushing, so that second page The identity legitimacy of first page is verified when receiving data-pushing request in face.
Wherein, identification information can be the domain name in the affiliated domain of first page, alternatively, ID etc., the present embodiment does not make this It limits.
Step 303, the reception response message that second page returns is received.
Wherein, receiving response message can be postMessage-ready message.
In the present embodiment, after first page, which sends data-pushing to second page, requests, first page can basis Pre-set monitor monitors the message that second page receives, to receive the reception response of second page return Message.Wherein, in the present embodiment, pre-set monitor can be located in second page.
In addition, can first be asked to data-pushing after second page gets the data-pushing request of first page transmission It asks and is parsed, to get the identification information of the first page carried in data-pushing request, then by above-mentioned identification information It is matched with preset white list.If successful match, it is determined that first page is legal, if it fails to match, it is determined that first page Face is illegal.When determining that first page is legal, second page can transmit and receive response message to first page, i.e., postMessage-ready。
Step 304, data are sent to second page.
Optionally, after first page receives the reception response message of second page return, first page can be by phase The data answered are sent to second page, so that above-mentioned data are written in aiming field second page.
Below by Fig. 5, with first page to second page propelling data, the data that second page will acquire are written For sessionStorage, above-mentioned first page is further described to the process of aiming field propelling data:
Assuming that first page is main website, second page is third party in main website Web client, then main website is to the The process of tripartite's propelling data, it may include following steps:
Step 10: main website obtains the corresponding second page address in the affiliated domain of third party :/mb/inc/trans_ data.shtml;
Step 11: main website establishes Iframe label according to/mb/inc/trans_data.shtml, to be marked by Iframe Label open second page, and send data-pushing request (a) to second page;
Step 12: third party parses received new information, and verifies to main website legitimacy;
Step 13: if it is determined that main website is legal, then transmitting and receiving response message (i.e. postMessage-ready) to main website;
Step 14: when main website listens to the postMessage-ready of third party's return, using PostMessage by phase Answer data-pushing to third party.
Optionally, in an exemplary embodiment of the present invention, when first page passes through second page to aiming field It is written after data in session memory block, the third page of aiming field can also be played by first page tune, so that the third page Carry out page rendering according to the data that are written in session memory block so that user can check data write-in result or The third page carries out the operation such as paying.
Wherein, the third page can be the interface or be delivery operation interface etc. for referring to that data write-in is completed, right herein It is not construed as limiting.
In order to become apparent from description the embodiment of the present invention, below by Fig. 6 and Fig. 7, it is with following possible realization scenes Example, is further described the process of the object-oriented propelling data of first page provided by the embodiments of the present application.
Realize scene: the domain B Web is applied an access label in the page of the domain A Web application, and user is in the domain A Web visitor In the end of family, Web application in the domain B is opened by the access label, and in the domain B Web application, have purchased commodity, and the domain B Web is answered It can not be paid in, the payment page for needing to jump back to the domain A Web application carries out commodity payment.Wherein, the domain B Web application is jumped When returning the payment interface progress commodity payment of the domain A Web application, corresponding data is transmitted as the domain B Web and is loaded using using access label Then transaction data is pushed to the domain A Web application by the second page of the domain A Web application, so that the domain A Web is applied according to the domain B Web Using the transaction data of transmission, the rendering payment page, to carry out delivery operation.Optionally, the data transmission between the domain A and the domain B As shown in figs. 6 and 7, wherein Fig. 6 is data transmission procedure signaling diagram to process, and Fig. 7 is schematic diagram of a scenario.
S1, user jump to the domain B web application from the domain A Web application;
The domain S2, B web detects the login state of local (session) no user;
The domain S3, B web utilizes the second page in the iframe label load domain A in current page;
The domain S4, A second page is sent to the domain B web by postMessage and logs in state data;
The domain S5, B web carries out login page rendering using state data are logged in;
S6, user buy commodity in the web of the domain B, and initiate payment process;
The domain S7, B web loads the second page in the domain A using iframe label;
S8, transaction data is pushed to the domain A Web;
After the domain S9, B web determines transaction data push, the payment page in the domain A is jumped to;
The domain S10, A renders the payment page according to the data of acquisition, so that user carries out delivery operation.
It should be noted that can according to need after the completion of payment and continue to jump back to the domain B web page, A can also be stayed in Domain web page.
Optionally, to realize after the completion of payment, jump back to the domain B web page, the domain B can push transaction data to the domain A When, while the page address for needing to jump back to after the completion of payment is pushed to the domain A, so that the domain A, which pays the page, is obtaining transaction data When, page address to be jumped back to can be obtained simultaneously, and then after the completion of determining payment, the domain B is directly jumped back to according to the address.
Cross-domain data transmission method provided in an embodiment of the present invention, first page is using in iframe label load aiming field Second page, then using PostMessage to second page send the data to be pushed, recycle second page will push away The data write-in aiming field sent.Hereby it is achieved that cross-domain data transmission is carried out using front end page, to effectively save difference The time that data are transmitted between the page in domain, so that data interaction more convenient and efficient, the user experience is improved, and passes through PostMessage carries out cross-domain data transmission, it is ensured that the safeties of data provides item for user's protection data safety Part.
By above-mentioned analysis it is found that first page can be directly interactive to aiming field propelling data by front end page.? In another situation of the invention, first page can also read data by second page from aiming field, according to the number of reading According to progress corresponding operating.Below with reference to Fig. 8, the process of data is read from aiming field by second page to above-mentioned first page It is described in detail.
Fig. 8 is the flow diagram of cross-domain data transmission method shown according to an exemplary embodiment.
As shown in figure 8, the cross-domain data transmission method may comprise steps of:
Step 601, first page obtains the second page address in aiming field, wherein first page and second page point Belong to different domains.
Step 602, target data mark to be obtained is determined.
Wherein, target data mark to be obtained, the present embodiment this can be not construed as limiting determine according to actual needs.
For example, if log-on message can be determined as to target data, and will when first page currently needs log-on message Mark of the Administrator as target data.
Step 603, according to second page address, hypertext markup language label is created in first page, super literary Second page is opened in this markup language tag, and sends data read request to second page.
It wherein, may include: the identification information of target data mark and first page to be obtained in data read request Deng.
It is understood that for convenience subsequent second page to the legitimate verification of first page, first page to When second page sends data read request, the identification information of itself can be carried in above-mentioned data read request, so that the Two pages verify the legitimacy of first page when receiving data read request.
Wherein, identification information can be the domain name in the affiliated domain of first page, alternatively, ID etc., the present embodiment does not make this It limits.
Step 604, the data that second page returns are received.
It optionally, can be according to pre-set after first page has sent data read request to second page Monitor, the message sent to second page are monitored, to receive the target data of second page return.
In addition, can first be asked to reading data after second page gets the data read request of first page transmission It asks and is parsed, to get the identification information of the first page carried in data read request, then by above-mentioned identification information It is matched with preset white list.If successful match, it is determined that first page is legal, if it fails to match, it is determined that first page Face is illegal.When determining that first page is legal, second page can be according to the mesh to be obtained carried in data read request Data Identification is marked, corresponding target data is read from aiming field, and target data is sent to first page, so that first page Face executes respective operations according to target data.
In the present embodiment, legal domain name is stored in preset white list, and above-mentioned preset white list can be Equipment default setting is also possible to the customized setting of user, and the present embodiment is not construed as limiting this.
Below with reference to Fig. 9, the mistake of data is read from the session memory block of aiming field by second page to first page Journey illustrates:
Assuming that first page is the page in the domain A Web application, second page is the page in the domain B Web application, then the domain A When Web applies the reading data from the session that the domain B Web is applied, it may include following steps:
The domain step 20:A Web applications client obtains the domain B Web and applies corresponding second page address :/mb/inc/ trans_data.shtml;
The domain step 21:A Web applications client establishes Iframe label according to/mb/inc/trans_data.shtml, with Data read request a is sent to the domain B by second page.
Wherein, target data mark b to be obtained can be carried in data read request.
The domain step 22:B Web applications client parses received data read request a, to the domain A Web application visitor Family end legitimacy is determined.
Wherein, Web applications client in the domain B can monitor second page by preset monitor, to obtain number According to read requests message.
Step 23: if it is determined that b is then identified according to the target data to be obtained in data read request a when the domain A is legal, Corresponding target data is read from the session in affiliated domain;
Target data is sent to the domain A using PostMessage by the second page in the Web applications client of the domain step 24:B The Web applications client page.
Optionally, in practical application, since the data information stored in the session memory block in the affiliated domain of the page usually has There is effective time, therefore work as second page and identified according to target data to be obtained, is obtained from the session memory block of aiming field When taking target data, the case where acquisition fails there is.At this point, in order to enable second page can get above-mentioned number in time According to, the present embodiment can also determine the 4th page address corresponding with target data in aiming field when target data obtains failure, And then according to the address of the 4th page, the 4th page is jumped back to, it is corresponding to obtain with by carrying out further operating in the 4th page Target data.
Below with reference to Figure 10, when reading data into the session memory block of aiming field by second page to first page, And to be read in aiming field data the case where be described in detail.
Assuming that first page is the page in the Web applications client of the domain A, second page is in the Web applications client of the domain B The page, user directly accesses the process of the domain B Web application from the Web client of the domain A, optional as follows:
S1, user apply from the page jump in the Web applications client of the domain A to the domain B Web;
The domain S2, B Web applications client detects the login state of local no user;
The domain S3, B Web applications client utilizes the second page in the iframe label load domain A in current page;
The domain S4, B Web applications client determines the login state data that second page return has not been obtained;
Wherein, state data are logged in when the domain B Web applications client is obtained from the Web applications client of the domain A by second page When, it may be more than timeliness because of the login state data stored in the domain A, alternatively, being not logged on state data, and the domain B Web be caused to answer It can not be got by second page with client and log in state data.
The domain S5, B Web applications client determines login page address corresponding with state data are logged in the domain A;
The domain S6, B Web applications client jumps back to the login page in the domain A;
Wherein, Web applications client in the domain B jumps back to the login page in the domain A, and corresponding data transmission is chosen as the domain B Web application Then login page address date is pushed to the domain A, so that the domain A root using the second page in the access label load domain A by client Corresponding login page is loaded according to the login page address that Web application in the domain B is sent.
The domain S7, B Web applications client carries out login authentication in login page;
S8, the domain B Web applications client is jumped back to;
The domain S9, B Web applications client utilizes the second page in the iframe label load domain A in current page;
S10, second page, which are sent by postMessage to the domain B Web applications client, logs in state data;
The domain S11, B Web applications client carries out login page rendering using state data are logged in.
Cross-domain data transmission method provided in an embodiment of the present invention, first first page load target using iframe label Second page in domain, then second page reads corresponding target data from aiming field, and the target data of reading is led to It crosses PostMessage and is sent to first page.Hereby it is achieved that cross-domain data transmission is carried out using the page in front end, to have Effect saves the time of cross-domain data transmission, so that cross-domain data interaction more convenient and efficient, the user experience is improved.And lead to It crosses PostMessage and carries out cross-domain data transmission, it is ensured that the safeties of data provides item for user's protection data safety Part.
In the exemplary embodiment, a kind of cross-domain data transmission device is additionally provided.
Figure 11 is the structural schematic diagram of cross-domain data transmission device shown according to an exemplary embodiment.
Referring to Fig.1 shown in 1, cross-domain data transmission device of the invention, comprising: obtain module 110,120 and of creation module Data transmission module 130.
Wherein, the second page address that module 110 is used to that first page to be made to obtain in aiming field is obtained, wherein first page Different domains are adhered to separately from the second page in face;
Creation module 120 is used to create hypertext markup language in the first page according to the second page address Label is sayed, to open the second page in the hypertext markup language label;
Data transmission module 130 by the second page and the aiming field for being carried out data transmission.
In a kind of optional way of realization, the data transmission module 130 is specifically used for:
Data are read from the aiming field by the second page;
Alternatively,
Data are sent to the second page, so that the data are written belonging to the second page second page Aiming field in.
It should be noted that the aforementioned explanation to cross-domain data transmission embodiment of the method is also applied for the embodiment Cross-domain data transmission device, realization principle is similar, and details are not described herein again.
Wherein, the cross-domain data transmission device can be configured in any Web applications client, so that the Web is answered With that can interact with the page in other domains by foreground, cross-domain data transmission is carried out.
Cross-domain data transmission device provided in an embodiment of the present invention, first page obtain the second page in aiming field first Address creates hypertext markup language label, in hypertext markup language then according to second page address in first page Second page is opened in speech label, is then carried out data transmission by second page and aiming field.Hereby it is achieved that in front end benefit Cross-domain data transmission is carried out with the page, so that the time of cross-domain data transmission is effectively saved, so that cross-domain data interaction is more Convenient and efficient, the user experience is improved.
Figure 12 is the structural schematic diagram of cross-domain data transmission device shown according to an exemplary embodiment.
Referring to Figure 12, which may include:
Obtain the second page address that module 110 is used to that first page to be made to obtain in aiming field, wherein first page and institute It states second page and adheres to different domains separately;
Creation module 120 is used to create hypertext markup language in the first page according to the second page address Label is sayed, to open the second page in the hypertext markup language label;
In a kind of optional way of realization, cross-domain data transmission device of the embodiment of the present invention, further includes: receiving module 140。
Wherein, receiving module 140 is used to receive the reception response message that the second page returns.
In a kind of optional way of realization, cross-domain data transmission device of the embodiment of the present invention, further includes: rendering module 150。
Wherein, rendering module 150 is used to adjust the third page in the aiming field, so that the third page is according to institute It states the data being written in aiming field and carries out page rendering.
It should be noted that the aforementioned explanation to cross-domain data transmission embodiment of the method is also applied for the embodiment Cross-domain data transmission device, realization principle is similar, and details are not described herein again.
Cross-domain data transmission device provided in an embodiment of the present invention, first page is using in iframe label load aiming field Second page, then using PostMessage to second page send the data to be pushed, recycle second page will push away The data write-in aiming field sent.Hereby it is achieved that cross-domain data transmission is carried out using front end page, to effectively save difference The time that data are transmitted between the page in domain, so that data interaction more convenient and efficient, the user experience is improved, and passes through PostMessage carries out cross-domain data transmission, it is ensured that the safeties of data provides item for user's protection data safety Part.
Figure 13 is the structural schematic diagram of cross-domain data transmission device shown according to an exemplary embodiment.
Referring to Figure 13, which may include:
Obtain the second page address that module 110 is used to that first page to be made to obtain in aiming field, wherein first page and institute It states second page and adheres to different domains separately;
In a kind of optional way of realization, cross-domain data transmission device of the embodiment of the present invention, further includes: first determines mould Block 160.
Wherein, the first determining module 160 is used to determine target data mark to be obtained;
Creation module 120 is used to create hypertext markup language in the first page according to the second page address Label is sayed, to open the second page in the hypertext markup language label;
Data transmission module 130 is used to send data read request to second page;
It wherein, may include: the identification information of target data mark and first page to be obtained in data read request Deng.
In a kind of optional way of realization, the data transmission module 130 is specifically used for:
According to the target data mark to be obtained, number of targets is read from the aiming field by the second page According to.
In a kind of optional way of realization, cross-domain data transmission device of the embodiment of the present invention, further includes:
Second determining module, if for not including the target data in the aiming field, it is determined that in the aiming field The address of the 4th page corresponding with the target data;
Jump module jumps back to the 4th page for the address according to the 4th page.
In a kind of optional way of realization, cross-domain data transmission device of the embodiment of the present invention, further includes: third determines mould Block.Wherein, third determining module, for determining that the aiming field is legal.
It should be noted that the aforementioned explanation to cross-domain data transmission embodiment of the method is also applied for the embodiment Cross-domain data transmission device, realization principle is similar, and details are not described herein again.
Cross-domain data transmission method provided in an embodiment of the present invention, first first page load target using iframe label Second page in domain, then second page reads corresponding target data from aiming field, and the target data of reading is led to It crosses PostMessage and is sent to first page.Hereby it is achieved that cross-domain data transmission is carried out using the page in front end, to have Effect saves the time of cross-domain data transmission, so that cross-domain data interaction more convenient and efficient, the user experience is improved.And lead to It crosses PostMessage and carries out cross-domain data transmission, it is ensured that the safeties of data provides item for user's protection data safety Part.
In the exemplary embodiment, a kind of computer equipment is additionally provided.
Figure 14 is the structural schematic diagram according to the computer equipment of an exemplary embodiment.The computer equipment that Figure 14 is shown An only example, should not function to the embodiment of the present invention and use scope bring any restrictions.
Referring to Fig.1 4, which includes: memory 210 and processor 220, and the memory 210 is stored with Computer program, when the computer program is executed by processor 220, so that the execution following steps of the processor 220: first The page obtains the second face address in aiming field, wherein the first page adheres to different domains separately from the second page;According to The second page address creates hypertext markup language label, in the hypertext markup language in the first page The second page is opened in speech label;Carried out data transmission by the second page and the aiming field.
In one embodiment, described to be carried out data transmission by the second page and the aiming field, comprising: to pass through The second page reads data from the aiming field;Alternatively, data are sent to the second page, so that the second page The data are written in aiming field belonging to the second page in face.
In one embodiment, before the transmission data to the second page, further includes: receive the second page The reception response message of return.
In one embodiment, after the transmission data to the second page, further includes: adjusted in the aiming field The third page so that the third page carries out page rendering according to the data that are written in the aiming field.
In one embodiment, before the creation hypertext markup language label, further includes: determine target to be obtained Data Identification;It is described that data are read from the aiming field by the second page, comprising: according to the target to be obtained Data Identification reads target data from the aiming field by the second page.
In one embodiment, it is described by the second page from the aiming field read target data after, also If including: does not include the target data in the aiming field, it is determined that corresponding with the target data in the aiming field The address of 4th page;According to the address of the 4th page, the 4th page is jumped back to.
In one embodiment, it is described carried out data transmission by the second page and the aiming field before, also wrap It includes: determining that the aiming field is legal.
In a kind of optional way of realization, as shown in figure 15, which can also include: memory 210 And processor 220, the bus 230 of different components (including memory 210 and processor 220) is connected, memory 210 is stored with meter Calculation machine program realizes cross-domain data transmission method described in the embodiment of the present invention when processor 220 executes described program.
Bus 230 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer equipment 200 typically comprises a variety of computer equipment readable mediums.These media can be it is any can The usable medium accessed by computer equipment 200, including volatile and non-volatile media, moveable and immovable Jie Matter.
Memory 210 can also include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 240 and/or cache memory 250.Computer equipment 200 may further include it is other it is removable/no Movably, volatile/non-volatile computer system storage medium.Only as an example, storage system 260 can be used for reading and writing Immovable, non-volatile magnetic media (Figure 10 do not show, commonly referred to as " hard disk drive ").Although being not shown in Figure 10, The disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, and non-easy to moving The CD drive that the property lost CD (such as CD-ROM, DVD-ROM or other optical mediums) is read and write.In these cases, each Driver can be connected by one or more data media interfaces with bus 230.Memory 210 may include at least one Program product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform this Invent the function of each embodiment.
Program/utility 280 with one group of (at least one) program module 270, can store in such as memory In 210, such program module 270 includes --- but being not limited to --- operating system, one or more application program, other It may include the realization of network environment in program module and program data, each of these examples or certain combination.Journey Sequence module 270 usually executes function and/or method in embodiment described in the invention.
Computer equipment 200 can also be with one or more external equipments 290 (such as keyboard, sensing equipment, display 291 etc.) it communicates, the equipment interacted with the computer equipment 200 communication can be also enabled a user to one or more, and/or (such as network interface card is adjusted with any equipment for enabling the computer equipment 200 to be communicated with one or more of the other calculating equipment Modulator-demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 292.Also, computer equipment 200 can also by network adapter 293 and one or more network (such as local area network (LAN), wide area network (WAN) and/or Public network, such as internet) communication.As shown, network adapter 293 passes through its of bus 230 and computer equipment 200 The communication of its module.It should be understood that although not shown in the drawings, other hardware and/or software can be used in conjunction with computer equipment 200 Module, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic Tape drive and data backup storage system etc..
Program of the processor 220 by operation storage in memory 210, thereby executing various function application and data Processing.
It should be noted that the aforementioned explanation to cross-domain data transmission embodiment of the method is also applied for the embodiment Computer equipment, realization principle is similar, and details are not described herein again.
Computer equipment provided in an embodiment of the present invention, first page obtain the second page address in aiming field first, Then according to second page address, hypertext markup language label is created in first page, in hypertext markup language mark Second page is opened in label, is then carried out data transmission by second page and aiming field.Hereby it is achieved that utilizing page in front end Face carries out cross-domain data transmission, so that the time of cross-domain data transmission is effectively saved, so that cross-domain data interaction is more convenient Efficiently, the user experience is improved.
In the exemplary embodiment, the invention also provides a kind of computer readable storage mediums.
Above-mentioned computer readable storage medium, is stored thereon with computer program, when which is executed by processor, realizes Cross-domain data transmission method described in embodiment.
In the description of the present invention, it is to be understood that, term " first ", " second " are used for description purposes only, and cannot It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include one or more of the features.In the description of the present invention, The meaning of " plurality " is two or more, limit unless otherwise clearly optional.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " optional to show The description of example " or " some examples " etc. means that optional feature described in conjunction with this embodiment or example or feature are contained in this In at least one embodiment or example of invention.In the present specification, schematic expression of the above terms are necessarily directed to It is identical embodiment or example.Moreover, the optional feature or feature of description in any one or more embodiments or can show It can be combined in any suitable manner in example.In addition, without conflicting with each other, those skilled in the art can be by this specification Described in the features of different embodiments or examples and different embodiments or examples be combined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, optional can realize in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more optional example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of cross-domain data transmission method characterized by comprising
First page obtains the second face address in aiming field, wherein the first page and the second page adhere to difference separately Domain;
According to the second page address, hypertext markup language label is created in the first page, in the super text The second page is opened in this markup language tag;
Carried out data transmission by the second page and the aiming field.
2. the method as described in claim 1, which is characterized in that described to be counted by the second page and the aiming field According to transmission, comprising:
Data are read from the aiming field by the second page;
Alternatively,
Data are sent to the second page, so that mesh belonging to the second page is written in the data by the second page It marks in domain.
3. method according to claim 2, which is characterized in that before the transmission data to the second page, further includes:
Receive the reception response message that the second page returns.
4. method according to claim 2, which is characterized in that after the transmission data to the second page, further includes:
The third page in the aiming field is adjusted, so that the third page is carried out according to the data being written in the aiming field Page rendering.
5. method according to claim 2, which is characterized in that before the creation hypertext markup language label, further includes:
Determine target data mark to be obtained;
It is described that data are read from the aiming field by the second page, comprising:
According to the target data mark to be obtained, target data is read from the aiming field by the second page.
6. method as claimed in claim 5, which is characterized in that described to be read from the aiming field by the second page After target data, further includes:
If in the aiming field not including the target data, it is determined that corresponding with the target data the in the aiming field The address of four pages;
According to the address of the 4th page, the 4th page is jumped back to.
7. the method as described in claim 1-6 is any, which is characterized in that described to pass through the second page and the aiming field Before carrying out data transmission, further includes:
Determine that the aiming field is legal.
8. a kind of cross-domain data transmission device characterized by comprising
Module is obtained, obtains the second page address in aiming field for first page, wherein first page and the second page Adhere to different domains separately in face;
Creation module, for creating hypertext markup language label in the first page according to the second page address, To open the second page in the hypertext markup language label;
Data transmission module, for being carried out data transmission by the second page and the aiming field.
9. a kind of computer equipment characterized by comprising memory and processor, the memory are stored with computer journey Sequence, which is characterized in that realize that cross-domain data as claimed in claim 1 is passed when the processor executes described program Transmission method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor When execution, cross-domain data transmission method as claimed in claim 1 is realized.
CN201810241240.9A 2018-03-22 2018-03-22 Cross-domain data transmission method, device, equipment and storage medium Active CN110300133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810241240.9A CN110300133B (en) 2018-03-22 2018-03-22 Cross-domain data transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810241240.9A CN110300133B (en) 2018-03-22 2018-03-22 Cross-domain data transmission method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110300133A true CN110300133A (en) 2019-10-01
CN110300133B CN110300133B (en) 2023-04-28

Family

ID=68025756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810241240.9A Active CN110300133B (en) 2018-03-22 2018-03-22 Cross-domain data transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110300133B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209557A (en) * 2019-12-24 2020-05-29 中移(杭州)信息技术有限公司 Cross-domain single sign-on method and device, electronic equipment and storage medium
CN111327598A (en) * 2020-01-21 2020-06-23 深圳前海环融联易信息科技服务有限公司 Project login-free method and device, computer equipment and storage medium
CN111339460A (en) * 2020-02-10 2020-06-26 广州虎牙科技有限公司 Data updating method and device, computer equipment and storage medium
CN111475228A (en) * 2020-04-03 2020-07-31 弦子科技(北京)有限公司 Data interaction method, device and equipment based on framework and storage medium
CN111859233A (en) * 2020-06-01 2020-10-30 中煤电气有限公司 Data interaction method, system, computer device and readable storage medium
CN112818270A (en) * 2021-01-25 2021-05-18 上海哔哩哔哩科技有限公司 Data cross-domain transfer method and device and computer equipment
CN113285936A (en) * 2021-05-14 2021-08-20 深圳市金蝶天燕云计算股份有限公司 Cross-domain data acquisition method and related device
CN113282856A (en) * 2021-06-09 2021-08-20 京东方科技集团股份有限公司 Cross-domain data processing method, device, equipment and storage medium
CN113296762A (en) * 2021-06-21 2021-08-24 北京有竹居网络技术有限公司 Page embedding method and device, storage medium and electronic equipment
CN114760139A (en) * 2022-04-21 2022-07-15 北京金堤科技有限公司 Login state synchronization method and device, electronic equipment and computer storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070299857A1 (en) * 2006-06-23 2007-12-27 Microsoft Corporation Cross Domain Communication
CN101771676A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Setting and authentication method for cross-domain authorization and relevant device and system
US20130055289A1 (en) * 2011-08-25 2013-02-28 International Business Machines Corporation Enabling a web application to call at least one native function of a mobile device
CN103207863A (en) * 2012-01-13 2013-07-17 腾讯科技(深圳)有限公司 Page cross-domain interacting method and terminal
CN103309877A (en) * 2012-03-12 2013-09-18 腾讯科技(深圳)有限公司 Method and device for cross-domain communication and full-duplex communication
CN103546570A (en) * 2013-10-29 2014-01-29 小米科技有限责任公司 Method, device and terminal for achieving network client-side cross-domain data request
CN104301379A (en) * 2014-08-28 2015-01-21 北京奇虎科技有限公司 Web page cross-domain communication method and device
CN104317819A (en) * 2014-09-28 2015-01-28 北京京东尚科信息技术有限公司 Method and system for webpage cross-domain communication based on browsers
CN105187426A (en) * 2015-09-06 2015-12-23 北京京东尚科信息技术有限公司 Method and system for realizing cross-domain access on the basis of authentication information
WO2016101732A1 (en) * 2014-12-26 2016-06-30 北京奇虎科技有限公司 Cross-page information transmission method and page browsing apparatus
US20170048259A1 (en) * 2015-08-11 2017-02-16 Raytheon Company Secure cross domain solution systems and methods

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070299857A1 (en) * 2006-06-23 2007-12-27 Microsoft Corporation Cross Domain Communication
CN101771676A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Setting and authentication method for cross-domain authorization and relevant device and system
US20130055289A1 (en) * 2011-08-25 2013-02-28 International Business Machines Corporation Enabling a web application to call at least one native function of a mobile device
CN103207863A (en) * 2012-01-13 2013-07-17 腾讯科技(深圳)有限公司 Page cross-domain interacting method and terminal
CN103309877A (en) * 2012-03-12 2013-09-18 腾讯科技(深圳)有限公司 Method and device for cross-domain communication and full-duplex communication
CN103546570A (en) * 2013-10-29 2014-01-29 小米科技有限责任公司 Method, device and terminal for achieving network client-side cross-domain data request
CN104301379A (en) * 2014-08-28 2015-01-21 北京奇虎科技有限公司 Web page cross-domain communication method and device
CN104317819A (en) * 2014-09-28 2015-01-28 北京京东尚科信息技术有限公司 Method and system for webpage cross-domain communication based on browsers
WO2016101732A1 (en) * 2014-12-26 2016-06-30 北京奇虎科技有限公司 Cross-page information transmission method and page browsing apparatus
US20170048259A1 (en) * 2015-08-11 2017-02-16 Raytheon Company Secure cross domain solution systems and methods
CN105187426A (en) * 2015-09-06 2015-12-23 北京京东尚科信息技术有限公司 Method and system for realizing cross-domain access on the basis of authentication information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘耀钦: ""基于HTML5跨域通信技术的客户端数据同步机制研究"", 《现代计算机(专业版)》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209557A (en) * 2019-12-24 2020-05-29 中移(杭州)信息技术有限公司 Cross-domain single sign-on method and device, electronic equipment and storage medium
CN111327598A (en) * 2020-01-21 2020-06-23 深圳前海环融联易信息科技服务有限公司 Project login-free method and device, computer equipment and storage medium
CN111339460A (en) * 2020-02-10 2020-06-26 广州虎牙科技有限公司 Data updating method and device, computer equipment and storage medium
CN111339460B (en) * 2020-02-10 2024-03-01 广州虎牙科技有限公司 Data updating method, device, computer equipment and storage medium
CN111475228A (en) * 2020-04-03 2020-07-31 弦子科技(北京)有限公司 Data interaction method, device and equipment based on framework and storage medium
CN111859233A (en) * 2020-06-01 2020-10-30 中煤电气有限公司 Data interaction method, system, computer device and readable storage medium
CN112818270B (en) * 2021-01-25 2023-07-25 上海哔哩哔哩科技有限公司 Data cross-domain transfer method and device and computer equipment
CN112818270A (en) * 2021-01-25 2021-05-18 上海哔哩哔哩科技有限公司 Data cross-domain transfer method and device and computer equipment
CN113285936A (en) * 2021-05-14 2021-08-20 深圳市金蝶天燕云计算股份有限公司 Cross-domain data acquisition method and related device
CN113285936B (en) * 2021-05-14 2023-10-31 深圳市金蝶天燕云计算股份有限公司 Cross-domain data acquisition method and related device
CN113282856A (en) * 2021-06-09 2021-08-20 京东方科技集团股份有限公司 Cross-domain data processing method, device, equipment and storage medium
CN113296762B (en) * 2021-06-21 2023-07-21 北京有竹居网络技术有限公司 Page embedding method and device, storage medium and electronic equipment
CN113296762A (en) * 2021-06-21 2021-08-24 北京有竹居网络技术有限公司 Page embedding method and device, storage medium and electronic equipment
CN114760139A (en) * 2022-04-21 2022-07-15 北京金堤科技有限公司 Login state synchronization method and device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN110300133B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN110300133A (en) Cross-domain data transmission method, apparatus, equipment and storage medium
JP5651112B2 (en) Form entry and automatic password generation using digital ID
US11120493B2 (en) Payment method, apparatus and system
US12008311B1 (en) Online purchase autofill plug-in
CN104519050B (en) Login method and login system
CN104394133B (en) Login method and login system
CN104468592B (en) Login method and login system
CN109542427B (en) System customization method and device, electronic equipment and storage medium
CN104158818B (en) A kind of single-point logging method and system
CN108733991A (en) Web application access method and device, storage medium
CN106484383A (en) page rendering method, device and equipment
CN110177120A (en) A kind of method, apparatus and computer readable storage medium of single-sign-on
CN106682028A (en) Method, device and system for obtaining web application
US10063659B2 (en) Monetizing downloadable files based on resolving custodianship thereof to referring publisher and presentation of monetized content in a modal overlay contemporaneously with download
CN103577526B (en) It is a kind of to verify method, system and browser that whether the page is changed
Peterson Web site measurement hacks: Tips & tools to help optimize your online business
CN110401630B (en) Transaction certificate verification method, device, electronic equipment and medium
WO2015002899A2 (en) Monetizing downloadable files based on resolving custodianship thereof to referring publisher and presentation of monetized content in a modal overlay contemporaneously with download
CN102790772B (en) The processing method of Cookie data, server and client side
CN107341388A (en) Access right control method and device
CN110020305A (en) Webpage loading method, device, computer equipment and storage medium
US20140304148A1 (en) Electronic Financial Service Risk Evaluation
CN108132973A (en) Loading method and device, the computer readable storage medium of WEB jump page
CN104486301B (en) Login validation method and device
CN109450890A (en) The method and apparatus of single-sign-on

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant