Tagged articles
JSONP
26 articles · Page 1 of 1
The article explains how Spring Boot’s MappingJacksonValue wrapper enables flexible JSON responses by allowing dynamic field selection, view‑based filtering with @JsonView, runtime filtering with @JsonFilter, and legacy JSONP support, while also noting its deprecation in newer Spring versions.
@JsonViewJSON filteringJSONP
0 likes · 11 min read

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.
CORSCross-OriginJSONP
0 likes · 13 min read

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

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-OriginFrontend Development
0 likes · 9 min read

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

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

This article explains the JSONP technique, demonstrates how to implement it in Spring Boot with a simple REST endpoint, custom JSONP wrapper, ResponseBodyAdvice, and a customized HttpMessageConverter, and shows how to test the solution using HTML script tags.
Cross-OriginHttpMessageConverterJSONP
0 likes · 9 min read

This article explains the concept of cross‑origin requests, the same‑origin policy that restricts them, and presents three practical frontend solutions—JSONP, a server‑side proxy using Nest.js, and Webpack dev‑server proxy configuration—along with code examples and security considerations.
CORSJSONPProxy
0 likes · 8 min read

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.
JSONPPHPfrontend
0 likes · 4 min read

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

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.
AJAXAOPAxios
0 likes · 19 min read

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

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

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.
AJAXCORSCross-Origin
0 likes · 20 min read

This article walks through a real‑world Spring Boot backend issue where a UEditor plugin required JSONP cross‑origin handling, detailing the initial CORS problem, version‑specific limitations, code adjustments using JSONPObject, and path‑reading fixes for jar‑deployed applications.
BackendCORSJSONP
0 likes · 6 min read


ITPUBApr 30, 2020 · Backend Development
This article explains the technical principles and step‑by‑step implementation of QR code login used by major platforms like WeChat and Taobao, covering server‑side UUID generation, Redis storage, token exchange, client polling, JSONP handling, and concrete code examples.
JSONPJavaScriptQR Login
0 likes · 13 min read

This article explains the technical principles behind QR code login, detailing the client‑server interaction, UUID generation, Redis storage, long‑polling, and token handling, and illustrates the implementation with real‑world examples from Taobao and WeChat, including code snippets and flow diagrams.
JSONPJavaScriptRedis
0 likes · 13 min read

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

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.
AJAXCORSCross-Origin
0 likes · 15 min read

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


21CTOOct 14, 2017 · Frontend Development
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.
AJAXCORSCross-Origin
0 likes · 12 min read

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

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

This article explains why JSONP is limited to GET requests, demonstrates a Baidu API call that works via CORS, and shows how to enable CORS on the server with the Access-Control-Allow-Origin header for all or specific origins.
CORSCross-OriginJSONP
0 likes · 2 min read

This guide explains how to bypass cross‑origin restrictions by configuring an Nginx reverse proxy, offering a simpler alternative to JSONP that avoids server‑side code changes while enabling seamless API calls from a different domain.
CORSJSONPnginx
0 likes · 2 min read

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-OriginJSONPPostMessage
0 likes · 9 min read
