Tagged articles
25 articles
Page 1 of 1
Java Architect Handbook
Java Architect Handbook
Mar 23, 2026 · Frontend Development

Mastering CORS and Cross‑Domain Solutions for Java Interviews

This guide explains the browser same‑origin policy, why cross‑origin restrictions exist, and presents five practical solutions—including CORS, proxy servers, JSONP, postMessage, and WebSocket—along with detailed configuration examples, code snippets, performance tips, and common interview follow‑up questions.

Browser SecurityCORSCross-Origin
0 likes · 13 min read
Mastering CORS and Cross‑Domain Solutions for Java Interviews
JavaScript
JavaScript
Jul 23, 2025 · Frontend Development

Master JSONP: Build a Cross‑Domain Hack Before CORS Era

This article explains the historical background of JSONP as a clever workaround for same‑origin restrictions, walks through its core concept and dialogue, provides a complete vanilla JavaScript implementation with usage examples, and discusses its limitations compared to modern CORS solutions.

CORSCross-OriginJSONP
0 likes · 10 min read
Master JSONP: Build a Cross‑Domain Hack Before CORS Era
Selected Java Interview Questions
Selected Java Interview Questions
Jun 6, 2025 · Frontend Development

How to Solve Cross-Origin Issues: CORS, JSONP, Nginx Proxy & More

This article explains why browsers enforce the Same‑Origin Policy, illustrates common CORS errors, and provides practical solutions—including CORS headers, JSONP, Nginx reverse proxy, API gateways, WebSocket, and postMessage—along with code examples and best‑practice tips for both development and production environments.

CORSCross-OriginJSONP
0 likes · 9 min read
How to Solve Cross-Origin Issues: CORS, JSONP, Nginx Proxy & More
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
php Courses
php Courses
Aug 25, 2023 · Frontend Development

Cross-Domain Communication in Web Development Using PHP (JSONP Example)

This article explains cross‑domain communication in web development, outlines common methods such as JSONP, CORS, iframe + postMessage and proxy, and provides a PHP example of JSONP implementation with client‑side script to demonstrate data transfer across different domains.

JSONPPHPWeb Development
0 likes · 4 min read
Cross-Domain Communication in Web Development Using PHP (JSONP Example)
php Courses
php Courses
Aug 25, 2023 · Backend Development

Implementing Cross-Domain Communication with PHP: JSONP Example

This article explains cross-domain communication concepts, compares methods like JSONP, CORS, iframe postMessage, and provides a complete PHP implementation of JSONP with client-side script examples, enabling data exchange across different domains in web development.

CORSJSONPPHP
0 likes · 6 min read
Implementing Cross-Domain Communication with PHP: JSONP Example
37 Interactive Technology Team
37 Interactive Technology Team
Oct 10, 2022 · Frontend Development

AOP Techniques for Ajax and Jsonp in Front-End Development

The article explains how to use Aspect‑Oriented Programming to globally intercept and rewrite Ajax and JSONP requests—both native and framework based—by extending Function.prototype, overriding DOM methods, and employing ajax‑hook and Axios interceptors, culminating in a runnable demo that redirects traffic from a‑domain to b‑domain.

HookJSONPJavaScript
0 likes · 19 min read
AOP Techniques for Ajax and Jsonp in Front-End Development
JD Retail Technology
JD Retail Technology
Mar 21, 2022 · Frontend Development

Understanding CORS, Cookies, and Cross‑Domain Solutions for Frontend Development

This article explains the fundamentals of cross‑origin restrictions, cookies, and same‑origin policy for frontend developers, demonstrates common CORS errors with sample code, and presents practical solutions—including iframe/postMessage, JSONP, WebSocket, and CORS configurations on servers such as Node.js and Nginx—to enable secure and reliable cross‑domain communication.

CORSCross-OriginJSONP
0 likes · 21 min read
Understanding CORS, Cookies, and Cross‑Domain Solutions for Frontend Development
Programmer DD
Programmer DD
Nov 8, 2021 · Frontend Development

Mastering Cross-Origin: From JSONP to CORS and Beyond

This article explains the browser's same‑origin policy, why cross‑origin requests are blocked, and walks through practical solutions—including JSONP, CORS with simple and preflight requests, PostMessage, WebSocket, Nginx reverse proxy, Node middleware proxy, and document.domain—so developers can choose the right technique for their needs.

CORSCross-OriginJSONP
0 likes · 16 min read
Mastering Cross-Origin: From JSONP to CORS and Beyond
Tencent Cloud Developer
Tencent Cloud Developer
Oct 9, 2021 · Frontend Development

Cross-Origin Issues and Solutions in Web Development

The article explains cross‑origin restrictions in web development, distinguishes broad and narrow cross‑origin, outlines common scenarios, and compares solutions such as JSONP, CORS, Flash, server proxies, and front‑end techniques like document.domain, hash, window.name, and postMessage, highlighting each method’s pros and cons.

CORSCross-OriginJSONP
0 likes · 20 min read
Cross-Origin Issues and Solutions in Web Development
Programmer DD
Programmer DD
Dec 6, 2019 · Backend Development

Mastering Cross-Origin Requests in Spring: JSONP and CORS Solutions

This article explains the concept of cross-origin, why it occurs in modern web architectures, and provides practical Spring‑based solutions using JSONP and CORS together with jQuery AJAX examples, complete with configuration snippets and code samples.

BackendCORSCross-Origin
0 likes · 6 min read
Mastering Cross-Origin Requests in Spring: JSONP and CORS Solutions
Qunar Tech Salon
Qunar Tech Salon
Sep 28, 2018 · Backend Development

Comprehensive Guide to Solving Cross-Origin Issues in Java Web Applications

This article explains the principles of cross-origin restrictions, analyzes various client‑side and server‑side solutions such as disabling browser security, using script tags, JSONP, and especially CORS with Spring Boot filters, annotations, and proxy configurations, providing complete code examples and practical deployment tips.

CORSCross-OriginJSONP
0 likes · 15 min read
Comprehensive Guide to Solving Cross-Origin Issues in Java Web Applications
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Dec 30, 2017 · Frontend Development

Mastering AJAX Cross‑Domain: From CORS to JSONP and Proxy Solutions

This article thoroughly explains AJAX cross‑domain issues, covering the underlying same‑origin policy, CORS and JSONP mechanisms, common error manifestations, step‑by‑step backend configurations for PHP, Node.js, Java, .NET, and proxy techniques, plus practical debugging methods using Chrome DevTools.

Cross-OriginDebuggingJSONP
0 likes · 14 min read
Mastering AJAX Cross‑Domain: From CORS to JSONP and Proxy Solutions
21CTO
21CTO
Oct 14, 2017 · Frontend Development

Mastering Cross‑Origin Requests: From AJAX to JSONP and CORS

This tutorial explains the concept of cross‑origin requests, demonstrates practical AJAX calls between two Node.js servers on different ports, and walks through three major solutions—standard AJAX, JSONP, and CORS—while also covering alternative techniques like window.name and postMessage.

CORSCross-OriginJSONP
0 likes · 12 min read
Mastering Cross‑Origin Requests: From AJAX to JSONP and CORS
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