Tagged articles
184 articles
Page 1 of 2
Coder Trainee
Coder Trainee
Apr 8, 2026 · Backend Development

How to Fix CORS Issues After Upgrading to Spring Boot 2.5.x

Upgrading a Spring Boot application from 2.1.8 to 2.5.6 can break existing CORS configurations, but adding a WebMvcConfigurer bean with allowedOriginPatterns resolves the new cross‑origin restrictions, as demonstrated with concrete code examples.

BackendCORSJava
0 likes · 3 min read
How to Fix CORS Issues After Upgrading to Spring Boot 2.5.x
Java Architect Handbook
Java Architect Handbook
Mar 27, 2026 · Frontend Development

Mastering CORS: In‑Depth Java Interview Guide for Cross‑Origin Solutions

This comprehensive guide explains the browser same‑origin policy, why cross‑origin restrictions exist, and walks through five major solutions—CORS, proxy servers, JSONP, postMessage, and WebSocket—detailing their principles, advantages, drawbacks, configuration examples, and best‑practice recommendations for interview scenarios.

CORSCross-OriginJava
0 likes · 16 min read
Mastering CORS: In‑Depth Java Interview Guide for Cross‑Origin Solutions
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
Coder Trainee
Coder Trainee
Feb 16, 2026 · Backend Development

Fixing Static Resource CORS Issues with Nginx After API CORS Is Resolved

The article explains why static assets can still trigger CORS errors even after API endpoints are configured correctly, distinguishes data‑API versus static‑resource CORS, and shows how adding an Access‑Control‑Allow‑Origin header in Nginx resolves the problem.

CORSCross-OriginNginx
0 likes · 3 min read
Fixing Static Resource CORS Issues with Nginx After API CORS Is Resolved
Tech Freedom Circle
Tech Freedom Circle
Jan 24, 2026 · Operations

How to Tackle Excess Connections, DDoS/DoS, CORS and XSS Attacks – A Complete Practical Guide

This article walks through a systematic, production‑grade approach to diagnosing and mitigating connection‑overload, DoS/DDoS, XSS and cross‑origin attacks, covering log analysis, Linux kernel tuning, Nginx rate‑limiting, CDN/DDoS‑protection layers, WAF rules, safe rendering practices, and a hardened CORS configuration template.

BackendCORSDDoS mitigation
0 likes · 48 min read
How to Tackle Excess Connections, DDoS/DoS, CORS and XSS Attacks – A Complete Practical Guide
Linux Tech Enthusiast
Linux Tech Enthusiast
Jan 13, 2026 · Backend Development

How to Quickly Fix CORS Issues with Simple Nginx Configuration

This article walks through common CORS errors encountered when a frontend on http://localhost:8080 calls a backend on http://localhost:59200, explains the role of the four CORS response headers, the preflight OPTIONS request, and provides step‑by‑step Nginx configurations to resolve each case.

CORSNginxhttp-headers
0 likes · 13 min read
How to Quickly Fix CORS Issues with Simple Nginx Configuration
Data STUDIO
Data STUDIO
Nov 24, 2025 · Backend Development

Avoid These 10 Common FastAPI Pitfalls for Beginners

This guide lists ten typical mistakes that new FastAPI developers make—such as using synchronous I/O in async endpoints, ignoring Pydantic models, mishandling database sessions, creating per‑request clients, misconfiguring CORS, monolithic code files, returning raw ORM objects, weak authentication, lacking timeouts/retries for external calls, and skipping testing—and provides concrete solutions with code examples to keep applications fast, reliable, and maintainable.

AsyncCORSFastAPI
0 likes · 14 min read
Avoid These 10 Common FastAPI Pitfalls for Beginners
Top Architect
Top Architect
Nov 3, 2025 · Backend Development

Master Nginx Static Site Performance: Caching, Gzip, CORS & Anti‑Hotlinking

This article consolidates practical solutions for configuring Nginx to serve high‑performance static websites, covering cache control, gzip compression, cross‑origin resource sharing, and anti‑hotlinking techniques, complete with code examples and detailed explanations of underlying principles.

BackendCORSGzip
0 likes · 11 min read
Master Nginx Static Site Performance: Caching, Gzip, CORS & Anti‑Hotlinking
JavaScript
JavaScript
Oct 22, 2025 · Frontend Development

Simplify CORS with Fetch API: One‑Line Solutions and Future Web Policies

This article explains the fundamentals of CORS, compares traditional workarounds, and demonstrates how modern Fetch API options, import assertions, and emerging web policies like CORP, COOP, and COEP provide simpler, more secure cross‑origin solutions for frontend developers.

CORSWeb Securityfetch API
0 likes · 4 min read
Simplify CORS with Fetch API: One‑Line Solutions and Future Web Policies
Ray's Galactic Tech
Ray's Galactic Tech
Oct 15, 2025 · Backend Development

How to Fix the “No Static Resource” Error After Upgrading Spring Boot 2.x to 3.x

After migrating a Spring Boot application from 2.x to 3.x, the “No static resource” error often appears because of Jakarta EE package changes and altered static‑resource configuration, and this guide walks you through the root causes, configuration updates, code changes, and practical debugging steps to resolve it.

CORSSpring BootStatic Resources
0 likes · 7 min read
How to Fix the “No Static Resource” Error After Upgrading Spring Boot 2.x to 3.x
Code Mala Tang
Code Mala Tang
Sep 13, 2025 · Information Security

Mastering CORS: How to Fix Cross-Origin Errors in Web Apps

Learn what CORS (Cross-Origin Resource Sharing) is, why browsers block cross-origin requests, and how to configure servers—using Java, Express.js, or Spring Boot—to handle preflight checks, simple requests, and fine-grained security headers, ensuring safe and functional web applications.

CORSCross-OriginHTTP
0 likes · 13 min read
Mastering CORS: How to Fix Cross-Origin Errors in Web Apps
JavaScript
JavaScript
Sep 13, 2025 · Frontend Development

How to Solve CORS Issues Easily with Fetch API and Modern JS Features

This article explains the fundamentals of CORS, reviews traditional workarounds, and demonstrates how the Fetch API, import assertions, and emerging web policies provide simpler, more secure solutions for cross‑origin requests in modern frontend development.

CORSJavaScriptWeb Security
0 likes · 5 min read
How to Solve CORS Issues Easily with Fetch API and Modern JS Features
Linux Tech Enthusiast
Linux Tech Enthusiast
Sep 13, 2025 · Backend Development

How to Quickly Fix CORS Issues with Simple Nginx Configuration

This article walks through the step‑by‑step process of diagnosing common CORS errors when a front‑end on localhost:8080 accesses a back‑end on localhost:59200, and shows how to resolve them by adding the correct Nginx response headers and handling preflight OPTIONS requests.

CORSNginxProxy
0 likes · 13 min read
How to Quickly Fix CORS Issues with Simple Nginx Configuration
Su San Talks Tech
Su San Talks Tech
Sep 9, 2025 · Cloud Native

Master Spring Cloud Gateway: Routing, Custom Predicates & Filters Explained

This guide walks through using Spring Cloud Gateway to replace direct service calls with a unified entry point, covering service discovery, load‑balanced routing, predicate definitions, custom predicates, rewrite‑path filters, global filters, and CORS configuration for microservice architectures.

CORSCustom PredicateMicroservices
0 likes · 21 min read
Master Spring Cloud Gateway: Routing, Custom Predicates & Filters Explained
Top Architect
Top Architect
Sep 3, 2025 · Information Security

Why Same‑Origin Policy Matters: Mastering CORS and Preflight Requests

This article explains the same‑origin policy, why browsers enforce it, how CORS works—including simple requests, preflight OPTIONS checks, required headers, and credential handling—while providing practical examples and a complete request‑flow diagram for secure web development.

CORSPreflight RequestSame-Origin Policy
0 likes · 17 min read
Why Same‑Origin Policy Matters: Mastering CORS and Preflight Requests
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
Cognitive Technology Team
Cognitive Technology Team
Jul 5, 2025 · Frontend Development

Why Does a POST Request Appear Twice? Unraveling CORS Preflight Mechanics

POST requests can be sent twice in cross‑origin scenarios because browsers issue a CORS preflight OPTIONS request first, and only after the server approves the request does the actual POST occur; understanding same‑origin policy, simple vs complex requests, and proper server header configuration prevents this duplication.

CORSCross-OriginPOST
0 likes · 8 min read
Why Does a POST Request Appear Twice? Unraveling CORS Preflight Mechanics
Selected Java Interview Questions
Selected Java Interview Questions
Jul 3, 2025 · Frontend Development

Understanding Same-Origin Policy and CORS: A Complete Guide

This article explains the fundamentals of the browser's same-origin policy, its security implications, how it restricts DOM, web data and network access, and provides a detailed overview of CORS, including simple requests, preflight checks, required headers, and best practices for safe cross-origin communication.

CORSCross-OriginWeb Security
0 likes · 14 min read
Understanding Same-Origin Policy and CORS: A Complete Guide
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
Top Architect
Top Architect
May 21, 2025 · Frontend Development

Understanding Same‑Origin Policy and CORS in Web Development

This article explains the browser's same‑origin policy, its role in preventing XSS, CSRF and other attacks, details the protocol, host and port rules, illustrates with examples, and then describes CORS, simple and preflight requests, credential handling, and provides a complete request flow diagram.

CORSHTTPWeb Security
0 likes · 17 min read
Understanding Same‑Origin Policy and CORS in Web Development
Liangxu Linux
Liangxu Linux
May 11, 2025 · Information Security

Fixing Cross-Origin Issues with Nginx: A Practical CORS Guide

This tutorial explains the browser same‑origin policy, demonstrates a cross‑origin request failure between two servers, and shows how to configure Nginx with appropriate Access‑Control headers to enable CORS and allow the client to retrieve JSON data safely.

CORSCross-OriginSame-Origin Policy
0 likes · 5 min read
Fixing Cross-Origin Issues with Nginx: A Practical CORS Guide
Java Architect Essentials
Java Architect Essentials
May 3, 2025 · Backend Development

Simplifying CORS Handling in Spring Boot with the @CrossOrigin Annotation

Spring Boot developers can eliminate complex CORS configurations by applying the @CrossOrigin annotation directly on controllers or methods, which simplifies cross‑origin request handling, supports custom origins, methods, and headers, and can be globally configured for consistent, secure API access across environments.

CORSJavaSpringBoot
0 likes · 8 min read
Simplifying CORS Handling in Spring Boot with the @CrossOrigin Annotation
Liangxu Linux
Liangxu Linux
Apr 29, 2025 · Backend Development

How to Fix Cross‑Origin Issues with Nginx: A Step‑by‑Step Guide

This article explains the browser same‑origin policy, demonstrates a CORS problem using two servers with an AJAX request, and provides a complete Nginx configuration—including add_header directives—to enable cross‑origin access and resolve the error.

CORSCross-OriginSame-Origin Policy
0 likes · 5 min read
How to Fix Cross‑Origin Issues with Nginx: A Step‑by‑Step Guide
Liangxu Linux
Liangxu Linux
Apr 28, 2025 · Backend Development

How to Fix Cross-Origin Issues with Nginx: A Step‑by‑Step Demo

This guide explains when cross‑origin problems occur, demonstrates a concrete Nginx‑based example with client‑side JavaScript, and shows how to resolve the issue by adding the appropriate Access‑Control‑Allow‑Origin and Access‑Control‑Allow‑Methods headers.

CORSCross-OriginJavaScript
0 likes · 5 min read
How to Fix Cross-Origin Issues with Nginx: A Step‑by‑Step Demo
Architecture Digest
Architecture Digest
Apr 18, 2025 · Information Security

Understanding Same-Origin Policy, CORS, and Preflight Requests

The article explains the fundamentals of the browser's same‑origin policy, the security risks it mitigates, how Cross‑Origin Resource Sharing (CORS) works—including simple and preflight requests—and best practices for handling credentials and header restrictions.

CORSCross-OriginPreflight Request
0 likes · 10 min read
Understanding Same-Origin Policy, CORS, and Preflight Requests
Java Tech Enthusiast
Java Tech Enthusiast
Apr 15, 2025 · Backend Development

Four Techniques for Handling CORS in SpringBoot Applications

The article explains what CORS is and presents four main approaches—using simple and pre‑flight request headers, configuring Nginx as a reverse proxy, adding a SpringBoot CorsConfig or CorsFilter bean, and delegating CORS to an API gateway—so developers can resolve cross‑origin issues in SpringBoot applications.

BackendCORSConfiguration
0 likes · 5 min read
Four Techniques for Handling CORS in SpringBoot Applications
Open Source Linux
Open Source Linux
Mar 11, 2025 · Frontend Development

How to Resolve CORS Issues with Nginx: A Hands‑On Demo

This guide explains the same‑origin policy, demonstrates a cross‑origin request failure between two servers, and provides step‑by‑step Nginx configuration and JavaScript code to enable CORS headers so the request succeeds.

CORSCross-OriginWeb Development
0 likes · 5 min read
How to Resolve CORS Issues with Nginx: A Hands‑On Demo
Selected Java Interview Questions
Selected Java Interview Questions
Mar 5, 2025 · Backend Development

Spring Boot Project Initialization, Version Management, and Common Backend Tools

This article walks through setting up a Spring Boot project, handling version compatibility with Spring Cloud, Kafka, and Maven, demonstrates global exception handling, logging, CORS and Swagger configurations, and recommends useful backend utilities such as embedded Redis, MyBatis Plus, and Redisson.

Backend DevelopmentCORSException Handling
0 likes · 9 min read
Spring Boot Project Initialization, Version Management, and Common Backend Tools
JavaScript
JavaScript
Mar 4, 2025 · Frontend Development

Simplify CORS in Frontend: One‑Line Fetch API Fix & New Import Assertions

This article explains the fundamentals of CORS, reviews traditional mitigation methods, and demonstrates how modern Fetch API options, import assertions, and emerging web standards provide concise, secure ways to handle cross‑origin requests in frontend development.

CORSJavaScriptWeb Security
0 likes · 5 min read
Simplify CORS in Frontend: One‑Line Fetch API Fix & New Import Assertions
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
MaGe Linux Operations
MaGe Linux Operations
Feb 12, 2025 · Backend Development

Mastering Nginx’s map Directive: Dynamic Variable Mapping and Real-World Use Cases

This article introduces Nginx’s map directive, explains its syntax and variable mapping capabilities, and demonstrates practical applications such as cookie‑based environment routing and secure multi‑domain CORS handling, providing code snippets and detailed explanations for effective server configuration.

CORSCookie Routingmap directive
0 likes · 5 min read
Mastering Nginx’s map Directive: Dynamic Variable Mapping and Real-World Use Cases
Ops Development & AI Practice
Ops Development & AI Practice
Jan 15, 2025 · Backend Development

Mastering CORS in Nginx: Common Errors and Precise Fixes

This guide explains the fundamentals of CORS, walks through typical misconfigurations such as HeaderDisallowedByPreflightResponse, Nginx header ordering, and Origin‑Credentials conflicts, and provides complete Nginx examples to reliably enable cross‑origin requests.

BackendCORSHTTP
0 likes · 8 min read
Mastering CORS in Nginx: Common Errors and Precise Fixes
Java Architect Essentials
Java Architect Essentials
Dec 17, 2024 · Backend Development

Configuring Nginx for High‑Performance Static Sites: Caching, Gzip, CORS, and Anti‑Hotlinking

This article explains how to configure Nginx for a high‑performance static website by setting up proper caching headers, enabling gzip compression, configuring cross‑origin resource sharing, and implementing hotlink protection, with detailed code examples and explanations of the underlying principles.

Backend DevelopmentCORSNginx
0 likes · 8 min read
Configuring Nginx for High‑Performance Static Sites: Caching, Gzip, CORS, and Anti‑Hotlinking
Code Mala Tang
Code Mala Tang
Dec 16, 2024 · Information Security

Avoid These 9 Common Node.js Security Pitfalls and Harden Your Apps

This guide reveals nine frequent security mistakes in Node.js applications—from misconfigured CORS and vulnerable dependencies to weak authentication and missing HTTPS—offering concrete code‑level solutions and best‑practice recommendations to protect your backend.

AuthenticationCORSNode.js
0 likes · 8 min read
Avoid These 9 Common Node.js Security Pitfalls and Harden Your Apps
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
Architect
Architect
Oct 20, 2024 · Backend Development

Spring Boot Project Setup: Initialization, Version Management, and Core Scaffold Code

This article walks through creating a Spring Boot project, handling IDE setup, managing Spring Cloud and Kafka version compatibility, using Maven for dependency management, and provides essential scaffold code such as global exception handling, logging aspects, CORS configuration, and Swagger integration.

CORSException HandlingSpring Boot
0 likes · 12 min read
Spring Boot Project Setup: Initialization, Version Management, and Core Scaffold Code
Linux Ops Smart Journey
Linux Ops Smart Journey
Sep 20, 2024 · Cloud Native

How to Enable CORS in Kubernetes Ingress Nginx: Step‑by‑Step Guide

This tutorial explains why CORS is needed for modern web applications, outlines common scenarios such as front‑end/back‑end separation and third‑party API integration, and provides a complete Ingress Nginx configuration with code examples to enable cross‑origin requests in a Kubernetes cluster.

CORSCloud NativeKubernetes
0 likes · 5 min read
How to Enable CORS in Kubernetes Ingress Nginx: Step‑by‑Step Guide
Code Ape Tech Column
Code Ape Tech Column
Sep 18, 2024 · Backend Development

Resolving Duplicate CORS Headers in Spring Cloud Gateway Using DedupeResponseHeader and Custom GlobalFilter

This article explains why Spring Cloud Gateway can return duplicate Access-Control-Allow-Origin and Vary headers, analyzes the request processing flow, and provides two solutions—using the built‑in DedupeResponseHeader filter with retention strategies or implementing a custom CorsResponseHeaderFilter—to eliminate the CORS error caused by multiple header values.

BackendCORSJava
0 likes · 10 min read
Resolving Duplicate CORS Headers in Spring Cloud Gateway Using DedupeResponseHeader and Custom GlobalFilter
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 3, 2024 · Frontend Development

Common Front‑End Issues on iOS, Android, and Web: Border‑Radius, Text Overflow, Button Focus, Coupon Hole Effect, Clipboard Compatibility, UnoCSS, and CORS Options Requests

This article explains several practical front‑end problems—including iOS border‑radius loss with transforms, text‑overflow truncation on iOS, Android button focus outlines, CSS coupon hole effects, clipboard API compatibility, UnoCSS style loss after bundling, and CORS OPTIONS request failures on low‑end devices—along with clear code‑based solutions.

CORSCSSborder-radius
0 likes · 6 min read
Common Front‑End Issues on iOS, Android, and Web: Border‑Radius, Text Overflow, Button Focus, Coupon Hole Effect, Clipboard Compatibility, UnoCSS, and CORS Options Requests
Top Architect
Top Architect
Jul 26, 2024 · Frontend Development

Understanding Same-Origin Policy and CORS: A Comprehensive Guide

This article explains the same‑origin policy, its role in browser security, how CORS enables controlled cross‑origin requests, the distinction between simple and preflight requests, credential handling, and best practices for configuring related HTTP headers.

CORSCross-OriginPreflight Request
0 likes · 16 min read
Understanding Same-Origin Policy and CORS: A Comprehensive Guide
macrozheng
macrozheng
Jul 18, 2024 · Information Security

Mastering Same-Origin Policy and CORS: A Complete Guide for Secure Web Development

This article explains the fundamentals of the same‑origin policy, its impact on DOM, web data and network requests, and provides a detailed overview of CORS, simple requests, preflight requests, and the necessary response headers to securely enable cross‑origin communication in modern browsers.

BrowserCORSWeb Security
0 likes · 13 min read
Mastering Same-Origin Policy and CORS: A Complete Guide for Secure Web Development
Lobster Programming
Lobster Programming
Jul 16, 2024 · Frontend Development

Mastering CORS: 6 Practical Solutions for Frontend‑Backend Integration

This article explains why browsers enforce same‑origin policy, how cross‑origin requests affect front‑end and back‑end communication, and presents six common solutions—including JSONP, Spring @CrossOrigin, WebMvcConfigurer, CorsFilter, Nginx proxy, and other advanced techniques—complete with code examples.

BackendCORSCross-Origin
0 likes · 8 min read
Mastering CORS: 6 Practical Solutions for Frontend‑Backend Integration
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 22, 2024 · Backend Development

Master Spring Boot: Unified Paths, Static Resources, Validation, and More

Learn how to configure Spring Boot 2.7.16 for unified API prefixes, custom static resource locations, annotation‑based and custom parameter validation, global exception handling, request inspection via HttpEntity, CORS filtering, custom error pages, and reliable ServletContext access using ApplicationListener.

CORSConfigurationServletContext
0 likes · 7 min read
Master Spring Boot: Unified Paths, Static Resources, Validation, and More
Open Source Linux
Open Source Linux
Feb 27, 2024 · Backend Development

Mastering CORS: Fix Cross‑Origin Errors with Nginx Proxy

This guide walks through diagnosing common CORS failures, explains the four essential response headers, and provides step‑by‑step Nginx configurations—including handling preflight OPTIONS requests, custom headers, and method restrictions—to reliably resolve cross‑origin issues during development.

CORSCross-OriginWeb Development
0 likes · 13 min read
Mastering CORS: Fix Cross‑Origin Errors with Nginx Proxy
Top Architect
Top Architect
Feb 20, 2024 · Backend Development

Resolving CORS Issues with Nginx Proxy Configuration

This article explains why browsers block cross‑origin requests, details the four CORS response headers, demonstrates common error scenarios, and provides step‑by‑step Nginx configuration examples—including handling pre‑flight OPTIONS requests and header inheritance—to reliably solve CORS problems.

CORSCross-OriginHTTP
0 likes · 15 min read
Resolving CORS Issues with Nginx Proxy Configuration
Architecture Digest
Architecture Digest
Feb 17, 2024 · Backend Development

Resolving CORS Issues with Nginx Proxy: A Step‑by‑Step Configuration Guide

This article explains why browsers block cross‑origin requests, details the four CORS response headers, demonstrates common error scenarios, and provides a series of Nginx configuration examples—including handling preflight OPTIONS requests, custom headers, and method restrictions—to reliably solve CORS problems during development.

BackendCORSConfiguration
0 likes · 12 min read
Resolving CORS Issues with Nginx Proxy: A Step‑by‑Step Configuration Guide
Java Tech Enthusiast
Java Tech Enthusiast
Feb 10, 2024 · Backend Development

Resolving CORS Issues with Nginx Proxy Configuration

The article shows how to fix CORS errors when a front‑end on http://localhost:8080 accesses a back‑end via Nginx by adding proper Access‑Control‑Allow‑* headers for normal and OPTIONS preflight requests, using an always flag correctly, and avoiding common misconfigurations that block cross‑origin calls.

CORSConfigurationHTTP
0 likes · 12 min read
Resolving CORS Issues with Nginx Proxy Configuration
AI Illustrated Series
AI Illustrated Series
Feb 9, 2024 · Information Security

Why Does a POST Sometimes Send Two Requests? A Deep Dive into CORS Preflight

This article explains why browsers may issue a duplicate POST request by exploring the same‑origin policy, the mechanics of CORS, the criteria for simple requests, the structure of preflight OPTIONS requests, credential handling, and how development tools like Webpack Dev Server bypass these restrictions.

Browser SecurityCORSCross-Origin
0 likes · 13 min read
Why Does a POST Sometimes Send Two Requests? A Deep Dive into CORS Preflight
Java Tech Enthusiast
Java Tech Enthusiast
Jan 10, 2024 · Information Security

Cross-Origin Resource Sharing (CORS) and Same-Origin Policy Explained

Cross-Origin Resource Sharing (CORS) extends the Same-Origin Policy by permitting controlled cross‑origin requests through simple and preflight flows, using specific headers and credential rules, thereby balancing web security against threats like XSS, CSRF, and injection attacks while enabling safe resource sharing.

Browser SecurityCORBCORS
0 likes · 10 min read
Cross-Origin Resource Sharing (CORS) and Same-Origin Policy Explained
Architect's Guide
Architect's Guide
Jan 6, 2024 · Information Security

Understanding Same-Origin Policy and CORS in Web Development

This article explains the same‑origin policy, its role in protecting web applications, how browsers enforce it through DOM, web‑data, and network restrictions, and how Cross‑Origin Resource Sharing (CORS) and preflight requests enable controlled cross‑origin communication while maintaining security.

Browser SecurityCORSCross-Origin
0 likes · 12 min read
Understanding Same-Origin Policy and CORS in Web Development
php Courses
php Courses
Dec 13, 2023 · Backend Development

Handling Cross-Origin Requests and Security Restrictions in PHP

This article explains how to use PHP functions such as header(), mysqli_real_escape_string(), and htmlspecialchars() to enable cross-origin resource sharing, handle preflight OPTIONS requests, and protect against SQL injection and XSS attacks, thereby improving web security and user experience.

CORSPHPWeb Development
0 likes · 4 min read
Handling Cross-Origin Requests and Security Restrictions in PHP
Code Ape Tech Column
Code Ape Tech Column
Sep 28, 2023 · Information Security

Understanding Same-Origin Policy and CORS in Web Development

This article explains the browser's Same-Origin Policy, its impact on DOM, data, and network access, and how Cross-Origin Resource Sharing (CORS) and preflight requests enable controlled cross-origin communication while preserving security.

Browser SecurityCORSCross-Origin Requests
0 likes · 11 min read
Understanding Same-Origin Policy and CORS in Web Development
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 27, 2023 · Frontend Development

Resolving a Mysterious CSS CORS Issue During Frontend Migration to Cloud

This article details how a hidden cross‑origin resource sharing (CORS) problem with a single CSS file surfaced during a multi‑project frontend migration to Alibaba Cloud, explains the root cause involving CDN caching without an Origin header, and presents step‑by‑step solutions using Nginx, OSS bucket settings, and CDN configurations.

CDNCORSCross-Origin
0 likes · 19 min read
Resolving a Mysterious CSS CORS Issue During Frontend Migration to Cloud
Architect
Architect
Sep 20, 2023 · Information Security

Understanding Same-Origin Policy and CORS in Web Development

This article explains the fundamentals of the Same‑Origin Policy, its security implications, and how Cross‑Origin Resource Sharing (CORS) works—including simple requests, preflight requests, and handling credentials—to help developers safely perform cross‑domain HTTP operations in browsers.

BrowserCORSCross-Origin
0 likes · 11 min read
Understanding Same-Origin Policy and CORS in Web Development
Selected Java Interview Questions
Selected Java Interview Questions
Sep 8, 2023 · Information Security

Understanding Same-Origin Policy and CORS in Web Development

This article explains the same‑origin policy, its security implications for DOM, web data and network communication, and how Cross‑Origin Resource Sharing (CORS) with simple and preflight requests enables controlled cross‑domain interactions while protecting users from attacks such as XSS, CSRF, and others.

CORSCross-OriginWeb Security
0 likes · 10 min read
Understanding Same-Origin Policy and CORS in Web Development
Selected Java Interview Questions
Selected Java Interview Questions
Sep 6, 2023 · Backend Development

Spring Cloud Gateway: Concepts, Configuration, Routing, Filters, and CORS Handling

This article introduces Spring Cloud Gateway as a unified entry for microservices, explains its core functions, advantages over Zuul, Maven dependencies, YAML routing configuration, detailed route components, filter types with code examples, custom global filters, execution order, and CORS solutions for backend development.

BackendCORSFilters
0 likes · 14 min read
Spring Cloud Gateway: Concepts, Configuration, Routing, Filters, and CORS Handling
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
Top Architect
Top Architect
Aug 8, 2023 · Backend Development

Spring Cloud Gateway: Concepts, Configuration, Routing, Filters, and CORS Handling

This article introduces Spring Cloud Gateway as a unified entry point for microservices, explains its core functions, compares it with Zuul, provides Maven and YAML configuration examples, details route definitions, filter types and ordering, shows how to implement custom filters, and demonstrates CORS solutions using both YAML and Java code.

CORSCustom FilterSpring Boot
0 likes · 16 min read
Spring Cloud Gateway: Concepts, Configuration, Routing, Filters, and CORS Handling
Su San Talks Tech
Su San Talks Tech
Jul 16, 2023 · Backend Development

Mastering CORS: Real‑World Backend Configurations and Chrome Private‑Network Fixes

This article shares a hands‑on journey of solving cross‑origin issues in a multi‑domain education product, covering CORS fundamentals, simple and preflight requests, Nginx and SpringBoot configurations, response‑code choices, and Chrome’s insecure private‑network restrictions, with practical solutions and lessons learned.

BackendCORSChrome
0 likes · 18 min read
Mastering CORS: Real‑World Backend Configurations and Chrome Private‑Network Fixes
Java High-Performance Architecture
Java High-Performance Architecture
Jul 2, 2023 · Backend Development

How to Fix CORS Errors with Nginx Proxy: Step‑by‑Step Guide

This article walks through the root causes of CORS failures when a front‑end site accesses a back‑end service, explains the four essential CORS response headers, and provides detailed Nginx configurations—including handling preflight OPTIONS requests and adding missing headers—to reliably resolve cross‑origin issues.

CORSCross-OriginHTTP
0 likes · 13 min read
How to Fix CORS Errors with Nginx Proxy: Step‑by‑Step Guide
MaGe Linux Operations
MaGe Linux Operations
Jun 25, 2023 · Information Security

Fix CORS Vulnerabilities in Nginx: Enforce Secure Origin Checks

This article explains why an insecure cross‑origin setup in Nginx violates security standards, demonstrates how to reproduce the vulnerability with custom Origin headers, and provides a complete Nginx configuration using a map directive to whitelist origins, add proper CORS headers, and return 403 for disallowed requests.

CORSConfigurationCross-Origin
0 likes · 3 min read
Fix CORS Vulnerabilities in Nginx: Enforce Secure Origin Checks
Top Architect
Top Architect
Jun 5, 2023 · Backend Development

Resolving CORS Issues with Nginx Proxy Configuration: A Step‑by‑Step Guide

This article walks through the root causes of CORS errors when a front‑end site on port 8080 calls a back‑end service on port 59200, explains the four essential CORS response headers, demonstrates common error scenarios, and provides complete Nginx configuration snippets—including handling pre‑flight OPTIONS requests, custom headers, and method allowances—to reliably eliminate cross‑origin problems.

BackendCORSConfiguration
0 likes · 13 min read
Resolving CORS Issues with Nginx Proxy Configuration: A Step‑by‑Step Guide
Programmer DD
Programmer DD
Apr 13, 2023 · Backend Development

5 Proven Ways to Enable CORS in Java Backend Applications

This guide explains the browser's same‑origin policy, defines cross‑origin requests, outlines the restrictions on non‑same‑origin resources, and presents five Java‑backend techniques—including a global CorsFilter bean, WebMvcConfigurer, @CrossOrigin annotation, manual response headers, and a custom filter—to enable CORS.

Backend DevelopmentCORSCross-Origin
0 likes · 8 min read
5 Proven Ways to Enable CORS in Java Backend Applications
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 12, 2022 · Backend Development

Mastering CORS in Spring MVC: Practical Configurations & Annotations

Spring MVC provides built‑in CORS support, allowing you to configure preflight, simple, and actual requests via global HandlerMapping settings, @CrossOrigin annotations, Java‑based CorsRegistry, or CorsFilter, with detailed options for origins, headers, methods, credentials, and max‑age to secure cross‑origin interactions.

Backend DevelopmentCORSCross-Origin
0 likes · 8 min read
Mastering CORS in Spring MVC: Practical Configurations & Annotations
Top Architect
Top Architect
Nov 22, 2022 · Backend Development

Handling Cross‑Origin Requests with Spring Cloud Gateway, @CrossOrigin Annotation, and HttpClient

The article explains why browsers enforce same‑origin policies, then presents three practical ways to solve cross‑origin issues in a Spring Boot backend—using the @CrossOrigin annotation, routing through Spring Cloud Gateway, and making server‑side requests with HttpClient—accompanied by configuration examples and full code snippets.

CORSHttpClientJava
0 likes · 12 min read
Handling Cross‑Origin Requests with Spring Cloud Gateway, @CrossOrigin Annotation, and HttpClient
Architect
Architect
Nov 18, 2022 · Backend Development

Handling Cross‑Origin Issues with @CrossOrigin, Spring Cloud Gateway, and HttpClient

This article explains why browsers enforce same‑origin policies, presents common CORS solutions such as the @CrossOrigin annotation, gateway integration with Spring Cloud Gateway, and using HttpClient, and provides detailed configuration and code examples for implementing these approaches in a Java backend project.

BackendCORSHttpClient
0 likes · 11 min read
Handling Cross‑Origin Issues with @CrossOrigin, Spring Cloud Gateway, and HttpClient
Java Architect Essentials
Java Architect Essentials
Nov 17, 2022 · Backend Development

Handling Cross-Origin Issues with Spring Cloud Gateway and HttpClient in Java

This article explains why browsers enforce same‑origin policies, presents common CORS solutions such as the @CrossOrigin annotation, HttpClient usage, and Spring Cloud Gateway integration, and provides detailed code examples for configuring gateways, CORS filters, and making HTTP requests in Java backend projects.

CORSCross-OriginHttpClient
0 likes · 14 min read
Handling Cross-Origin Issues with Spring Cloud Gateway and HttpClient in Java
Ctrip Technology
Ctrip Technology
Nov 10, 2022 · Operations

Case Study: CORS Failure Caused by CDN Misconfiguration and Its Resolution

This article recounts a real‑world incident where a change to the Access‑Control‑Allow‑Origin header triggered CORS errors for credentialed requests, analyzes the CDN caching and Vary‑header issues that caused inconsistent responses, and outlines the steps taken to fix and prevent the problem.

CDNCORSCache
0 likes · 10 min read
Case Study: CORS Failure Caused by CDN Misconfiguration and Its Resolution