Tagged articles
13 articles
Page 1 of 1
JavaScript
JavaScript
Oct 4, 2025 · Frontend Development

Why is the document.domain API Being Deprecated and What to Use Instead?

The article explains the purpose and historical popularity of the document.domain property for cross‑subdomain communication, details its deprecation across major browsers due to security and maintenance concerns, and provides practical migration strategies using postMessage, Channel Messaging API, and proper CORS configuration.

Cross-OriginWeb Securitydeprecation
0 likes · 6 min read
Why is the document.domain API Being Deprecated and What to Use Instead?
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Jun 9, 2025 · Frontend Development

Choosing the Right Micro‑Frontend Strategy: Qiankun vs Umi Micro vs Iframe

This article compares two micro‑frontend frameworks (Qiankun and Umi Micro) and an iframe‑based solution, detailing their principles, feature comparisons, pros and cons, integration costs, typical scenarios, common pitfalls, and improvement plans to help developers select the most suitable approach for multi‑platform product integration.

Frontend Architectureiframemicro-frontend
0 likes · 15 min read
Choosing the Right Micro‑Frontend Strategy: Qiankun vs Umi Micro vs Iframe
Su San Talks Tech
Su San Talks Tech
Feb 28, 2025 · Backend Development

How to Solve CORS Errors: Practical Frontend and Backend Strategies

This article explains why browsers block cross‑origin requests due to the Same‑Origin Policy, then walks through six practical solutions—including CORS headers, JSONP, Nginx reverse proxy, API gateways, WebSocket, and postMessage—providing code examples for both frontend and Spring Boot backend configurations.

CORSCross-OriginJSONP
0 likes · 9 min read
How to Solve CORS Errors: Practical Frontend and Backend Strategies
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 26, 2024 · Frontend Development

Cross-Origin and Same-Origin Strategies: JSONP, CORS, Proxy, Nginx, WebSocket, postMessage, and document.domain

This article explains the concepts of cross‑origin and same‑origin policies, and demonstrates multiple solutions—including JSONP, CORS headers, proxy servers, Nginx configuration, WebSocket communication, postMessage, and document.domain—providing both front‑end and back‑end code examples for each method.

CORSCross-OriginJSONP
0 likes · 13 min read
Cross-Origin and Same-Origin Strategies: JSONP, CORS, Proxy, Nginx, WebSocket, postMessage, and document.domain
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 15, 2022 · Frontend Development

Designing a Unified Browser Message Communication Library (rpc-shooter) with TypeScript Interfaces and JSON-RPC

This article explains how to build a versatile browser message‑communication library that works across iframes, Web Workers, ServiceWorkers, BroadcastChannel and other MessagePort‑like objects, using a unified interface design, TypeScript typings, event‑driven architecture and JSON‑RPC for reliable remote procedure calls.

JSON-RPCRPCWeb Workers
0 likes · 13 min read
Designing a Unified Browser Message Communication Library (rpc-shooter) with TypeScript Interfaces and JSON-RPC
Youzan Coder
Youzan Coder
Feb 27, 2019 · Frontend Development

How to Build a Cross‑Platform Shop Builder with React, Vue, and Iframe Communication

This article presents a technical design for a multi‑platform shop‑decoration system that shares data via React context, reuses Vue‑based preview components through an iframe, synchronizes updates with a postMessage wrapper, and implements drag‑and‑drop using vuedraggable, providing a scalable solution for PC, H5, and mini‑programs.

Drag-and-DropReactVue
0 likes · 12 min read
How to Build a Cross‑Platform Shop Builder with React, Vue, and Iframe Communication
Baixing.com Technical Team
Baixing.com Technical Team
Aug 18, 2017 · Frontend Development

Master Cross-Domain Communication with easyXDM: Full Guide & Code Samples

This article explains why switching iframe pages to HTTPS broke automatic resizing due to cross-origin restrictions, introduces the easyXDM library as a comprehensive solution, and provides step‑by‑step code examples for parent‑child communication, protocol selection, multi‑iframe handling, and debugging techniques.

JavaScriptcross-domaineasyXDM
0 likes · 15 min read
Master Cross-Domain Communication with easyXDM: Full Guide & Code Samples
Ctrip Technology
Ctrip Technology
Jun 22, 2017 · Frontend Development

Common Front‑End Data Exchange Methods and Their Use Cases with Code Examples

This article reviews various front‑end data exchange techniques—including HTTP methods, form encodings, AJAX, fetch, Server‑Sent Events, WebSocket, postMessage, and Web Workers—explaining when to use each, providing practical examples and code snippets for real‑world scenarios.

HTTPServer‑Sent EventsWeb Workers
0 likes · 16 min read
Common Front‑End Data Exchange Methods and Their Use Cases with Code Examples
Qunar Tech Salon
Qunar Tech Salon
Jun 7, 2017 · Frontend Development

Cross‑Origin Communication Techniques: JSONP, window.name, document.domain, CORS, postMessage, and WebSocket with Code Samples

This article demonstrates several cross‑origin communication methods—including JSONP, window.name, document.domain, CORS, postMessage, and WebSocket—by providing step‑by‑step code examples, host file configuration, and instructions for testing each technique in a local environment development.

CORSCross-OriginJSONP
0 likes · 12 min read
Cross‑Origin Communication Techniques: JSONP, window.name, document.domain, CORS, postMessage, and WebSocket with Code Samples
JavaScript
JavaScript
Nov 8, 2016 · Frontend Development

Mastering Cross-Origin Techniques: JSONP, img Ping, window.name, postMessage & CORS

Explore multiple cross-origin communication methods—including same-origin rules, JSONP, img ping, window.name, postMessage, and CORS—by understanding their principles, code examples, and server requirements, enabling developers to safely exchange data across different domains in web applications.

CORSCross-OriginJSONP
0 likes · 8 min read
Mastering Cross-Origin Techniques: JSONP, img Ping, window.name, postMessage & CORS
Architect
Architect
Aug 31, 2015 · Frontend Development

Comprehensive JavaScript Cross‑Domain Guide with Demo

This article offers a thorough, demo‑driven tutorial on JavaScript cross‑origin techniques—including JSONP, document.domain, window.name, and HTML5 postMessage—explaining their principles, usage conditions, and code examples for practical implementation.

Cross-OriginJSONPdocument.domain
0 likes · 9 min read
Comprehensive JavaScript Cross‑Domain Guide with Demo