Tag

CORS

1 views collected around this technical thread.

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.

CORSHTTPPreflight
0 likes · 17 min read
Understanding Same‑Origin Policy and CORS in Web Development
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 14, 2025 · Backend Development

Handling CORS in Spring Boot and Vue3: Concepts, Code, and Demo

This article explains the concept of Cross‑Origin Resource Sharing (CORS), demonstrates how to identify cross‑origin requests, and provides a complete Spring Boot backend configuration together with Vue3/Axios frontend code to solve CORS issues in a full‑stack web application.

AxiosCORSCross-Origin
0 likes · 9 min read
Handling CORS in Spring Boot and Vue3: Concepts, Code, and Demo
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.

BackendCORSCrossOrigin
0 likes · 8 min read
Simplifying CORS Handling in Spring Boot with the @CrossOrigin Annotation
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-OriginSame-Origin Policy
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
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
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 DevelopmentCORSCaching
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.

AuthenticationCORSDependency Management
0 likes · 8 min read
Avoid These 9 Common Node.js Security Pitfalls and Harden Your Apps
Top Architect
Top Architect
Nov 26, 2024 · Information Security

Understanding Same-Origin Policy and CORS: Core Concepts, Simple Requests, and Preflight Mechanics

This article explains the same‑origin policy, its role in protecting browsers from XSS, CSRF and other attacks, illustrates how origins are defined with protocol, host and port, and details how CORS, simple requests and preflight requests enable controlled cross‑origin communication.

CORSCross-Origin RequestsPreflight
0 likes · 15 min read
Understanding Same-Origin Policy and CORS: Core Concepts, Simple Requests, and Preflight Mechanics
Go Programming World
Go Programming World
Nov 19, 2024 · Backend Development

Understanding and Implementing CORS (Cross‑Origin Resource Sharing) in Go

This article explains the browser same‑origin policy, defines cross‑origin requests, details the CORS mechanism—including simple and non‑simple requests and their required HTTP headers—and provides practical Go examples using Gin middleware and Kubernetes to solve CORS issues.

BackendCORSCross-Origin
0 likes · 27 min read
Understanding and Implementing CORS (Cross‑Origin Resource Sharing) in Go
Top Architect
Top Architect
Nov 9, 2024 · Backend Development

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

This article explains how to configure Nginx for a high‑performance static website by setting up proper caching rules, enabling gzip compression, configuring cross‑origin resource sharing and preventing hotlinking, and includes practical code examples and detailed explanations of the underlying mechanisms.

BackendCORSCache
0 likes · 11 min read
Configuring Nginx for High‑Performance Static Sites: Cache, Gzip, CORS and Anti‑Hotlinking
Top Architect
Top Architect
Oct 27, 2024 · Backend Development

Configuring Nginx for High-Performance Static Websites: Caching, Gzip, CORS, and Anti-Leech

This article explains how to configure Nginx for static sites by setting up caching policies, gzip compression, cross‑origin resource sharing, and anti‑hotlinking rules, while also providing practical code examples and discussing the underlying HTTP cache mechanisms.

Backend DevelopmentCORSCaching
0 likes · 12 min read
Configuring Nginx for High-Performance Static Websites: Caching, Gzip, CORS, and Anti-Leech
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 HandlingMaven
0 likes · 12 min read
Spring Boot Project Setup: Initialization, Version Management, and Core Scaffold Code
Top Architect
Top Architect
Sep 29, 2024 · Frontend Development

Understanding Same‑Origin Policy and CORS in Frontend Development

This article explains the fundamentals of the same‑origin policy, the security risks it mitigates, and how CORS and preflight requests work in browsers, illustrating the concepts with diagrams, header details, and a complete request flow chart.

CORSHTTPPreflight
0 likes · 16 min read
Understanding Same‑Origin Policy and CORS in Frontend Development