Cross-station request processing method and device and electronic equipment
A technology of cross-site request and processing method, applied in the field of communication, can solve the problems of unusable, URL length limitation, easy to be intercepted and forged, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] Based on the above idea of cross-site request processing, such as image 3 As shown in , it is the flow of the cross-site request processing method shown in the embodiment of the present invention Figure 1 , which can be accessed via figure 2 The execution of the cross-site request processing means 230 shown in is completed. Such as image 3 As shown, the cross-site request processing method includes the following steps:
[0045] S310. Obtain a cross-site request initiated from the service processing page in the browser, where the cross-site request is used to obtain service data from a target address different from the address that initiates the cross-site request.
[0046] Among them, the cross-site request in this solution means that the original address and the target address that initiate the page request are not the same source address. The cross-site request may be a request of a data transmission protocol including JSONP or cross-origin resource sharing ...
Embodiment 2
[0064] Such as Figure 5 As shown, it is the flow of the cross-site request processing method according to the embodiment of the present invention Figure three In this embodiment, a bridging page is embedded in the business processing page to realize the process of converting the cross-site request into a same-origin request with the same origin as the target address and sending the same-origin request to the server of the target address. Such as Figure 5 As shown, the cross-site request processing method includes the following steps:
[0065] S510. Load at least one iframe tag in the business processing page, and load a bridging page with the same origin as the target address in the iframe tag.
[0066] When the business processing page is initialized in the browser, the business processing page additionally loads an iframe through the pre-set JavaScript library, and a bridging page with the same origin as the target address of the cross-site request is loaded in the ifra...
Embodiment 3
[0081] Such as Figure 6 Shown is the structure of the cross-site request processing device according to the embodiment of the present invention Figure 1 , the cross-site request processing device can be set in figure 2 In the cross-site request processing system shown, it is used to perform such as image 3 Shown method step, it comprises:
[0082] The cross-site request acquisition module 610 is used to acquire the cross-site request initiated from the business processing page in the browser, and the cross-site request is used to obtain business data from a target address different from the address that initiated the cross-site request;
[0083] The request conversion module 620 is configured to convert the cross-site request into a same-origin request with the same source as the target address, and carry a check token for preventing cross-site request forgery in the same-origin request;
[0084] Same-origin request sending module 630, configured to send the same-origin...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com