Tagged articles
38 articles
Page 1 of 1
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
Practical DevOps Architecture
Practical DevOps Architecture
Aug 12, 2025 · Backend Development

Mastering Nginx Proxy Header Transmission: Key Configurations and Common Pitfalls

This article explains how Nginx forwards HTTP request headers to backend servers, details the default headers passed, shows how to customize header transmission with directives like proxy_set_header, and addresses typical issues such as missing client IP, incorrect Host headers, and security concerns.

http-headersload balancingproxy_set_header
0 likes · 9 min read
Mastering Nginx Proxy Header Transmission: Key Configurations and Common Pitfalls
Linux Cloud Computing Practice
Linux Cloud Computing Practice
May 22, 2025 · Backend Development

Fix CORS Errors with Nginx Proxy: A Step‑by‑Step Guide

This article walks through why browsers block cross‑origin requests, explains the four CORS response headers, demonstrates how to test preflight requests, and provides multiple Nginx configuration examples—including handling OPTIONS, custom headers, and method restrictions—to reliably resolve CORS issues.

Proxyhttp-headerspreflight
0 likes · 13 min read
Fix CORS Errors with Nginx Proxy: A Step‑by‑Step Guide
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 21, 2025 · Backend Development

Enabling Underscore Headers in Nginx for Spring Boot Applications

This article demonstrates how Nginx’s default behavior ignores request headers containing underscores, causing missing parameters in a Spring Boot application, and shows how to configure the 'underscores_in_headers on;' directive to correctly forward such headers, with code examples and testing via Postman.

NGINXSpring BootUnderscore headers
0 likes · 4 min read
Enabling Underscore Headers in Nginx for Spring Boot Applications
Java Architect Essentials
Java Architect Essentials
May 14, 2025 · Backend Development

Master SpringBoot @RequestHeader: Simplify HTTP Header Binding

This article explains how SpringBoot's @RequestHeader annotation automatically binds HTTP request headers to controller method parameters, reducing boilerplate code, supporting default values and optional headers, and improving readability and development efficiency with clear code examples.

@RequestHeaderBackendJava
0 likes · 6 min read
Master SpringBoot @RequestHeader: Simplify HTTP Header Binding
Java Architecture Stack
Java Architecture Stack
Oct 22, 2024 · Backend Development

How to Prevent Browser Caching of JavaScript in Java Backend Apps

This article explains why stale JavaScript can break functionality, outlines the risks of caching such as outdated bugs, security flaws, and debugging difficulties, and provides practical Java‑side solutions—including versioned URLs, cache‑control headers, static‑resource policies, and ETag/Last‑Modified handling—to ensure browsers always load the latest scripts.

BackendJavaJavaScript
0 likes · 7 min read
How to Prevent Browser Caching of JavaScript in Java Backend Apps
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
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
Programmer DD
Programmer DD
May 9, 2023 · Backend Development

Why Does Java Throw ‘Request header is too large’ and How to Fix It in Spring Boot

Encountering a java.lang.IllegalArgumentException: Request header is too large? This guide explains the root cause—oversized HTTP headers—and offers two practical solutions: adjusting the server’s max‑http‑header‑size setting in Spring Boot and redesigning requests to keep header data minimal.

Java exceptionServer ConfigurationSpring Boot
0 likes · 3 min read
Why Does Java Throw ‘Request header is too large’ and How to Fix It in Spring Boot
php Courses
php Courses
Nov 1, 2022 · Backend Development

Resolving Duplicate Set-Cookie Header Caused by Repeated session_start() Calls in PHP

The article explains why calling PHP's session_start() multiple times generates duplicate Set-Cookie headers, provides a code-based fix using session_abort() and header_remove(), and discusses session file locking, cookie lifetime, and garbage collection settings to manage session behavior effectively.

BackendSessionSession Management
0 likes · 3 min read
Resolving Duplicate Set-Cookie Header Caused by Repeated session_start() Calls in PHP
政采云技术
政采云技术
Aug 9, 2022 · Fundamentals

Understanding HTTP Referer: Definition, Policies, and Use Cases

HTTP Referer is a header field that indicates the source URL of the current webpage, playing a crucial role in web security, analytics, and troubleshooting, with various Referrer-Policy strategies controlling how much information is shared.

HTTP RefererReferrer-PolicyWeb Development
0 likes · 10 min read
Understanding HTTP Referer: Definition, Policies, and Use Cases
Practical DevOps Architecture
Practical DevOps Architecture
Apr 14, 2022 · Backend Development

Understanding and Solving Cross-Origin Issues with Nginx add_header Configuration

This article explains when cross‑origin problems occur due to the browser's same‑origin policy, describes the restrictions it imposes, and provides detailed Nginx add_header configurations—including specific and global examples—to enable Access‑Control‑Allow‑Origin and Access‑Control‑Allow‑Methods headers for CORS resolution.

CORSCross-OriginNGINX
0 likes · 4 min read
Understanding and Solving Cross-Origin Issues with Nginx add_header Configuration
System Architect Go
System Architect Go
Feb 28, 2021 · Information Security

Cross-Origin Resource Sharing (CORS) and Same‑Origin Policy: Concepts, Vulnerabilities, and Mitigations

This article explains the fundamentals of Cross‑Origin Resource Sharing (CORS) and the Same‑Origin Policy, illustrates common misconfigurations and attack scenarios such as origin reflection, null origin whitelisting, and TLS downgrade, and provides best‑practice mitigation techniques for secure web development.

CORSCross-Origin AttacksSame-Origin Policy
0 likes · 20 min read
Cross-Origin Resource Sharing (CORS) and Same‑Origin Policy: Concepts, Vulnerabilities, and Mitigations
Fulu Network R&D Team
Fulu Network R&D Team
Oct 27, 2020 · Information Security

Understanding Fetch Metadata Request Headers (Sec-Fetch-*) and Their Security Implications

This article explains the purpose, possible values, and security impact of the Sec-Fetch request headers introduced by the Fetch Metadata specification, showing how browsers automatically add them, how servers can use them to filter illegal requests, and providing practical policy examples and code snippets.

Browser SecurityCSRF ProtectionFetch Metadata
0 likes · 9 min read
Understanding Fetch Metadata Request Headers (Sec-Fetch-*) and Their Security Implications
QQ Music Frontend Team
QQ Music Frontend Team
Jul 13, 2020 · Frontend Development

Mastering Browser Caching: Essential Strategies Every Front‑End Developer Should Know

This article comprehensively explains web caching fundamentals, HTTP cache mechanisms, strong and negotiated caching stages, cache control headers, and advanced strategies like IndexedDB, Service Workers, and CDN caching, helping front‑end developers design optimal cache policies for faster, more efficient web applications.

Browser CacheIndexedDBWeb Caching
0 likes · 15 min read
Mastering Browser Caching: Essential Strategies Every Front‑End Developer Should Know
UC Tech Team
UC Tech Team
Jan 7, 2019 · Backend Development

Using the Server‑Timing Header to Measure Server Performance

The article explains how the Server‑Timing HTTP header can be used to transmit arbitrary server‑side metrics to the client, shows how to send multiple timing values, demonstrates Chrome DevTools support, warns about exposing sensitive data, and introduces a small hapi plugin that simplifies adding the header.

Backend DevelopmentHapiPerformance Monitoring
0 likes · 3 min read
Using the Server‑Timing Header to Measure Server Performance
Qunar Tech Salon
Qunar Tech Salon
Nov 25, 2016 · Backend Development

Understanding Browser Cache Control with Spring MVC and Nginx

This article explains how browsers cache resources using HTTP headers such as Last-Modified, Expires, Cache-Control and ETag, demonstrates Java Spring MVC code to set these headers, and shows how to configure Nginx for both static and proxy caching to reduce backend load and improve performance.

Browser Cachecachinghttp-headers
0 likes · 19 min read
Understanding Browser Cache Control with Spring MVC and Nginx
Efficient Ops
Efficient Ops
Nov 13, 2016 · Frontend Development

Master Browser Caching: HTTP Headers, Spring MVC Code, and Nginx Configuration

This article explains how browsers cache resources, the role of HTTP response headers such as Last-Modified, Expires, Cache-Control, ETag, and Age, and provides practical examples of controlling cache behavior with Spring MVC code and detailed Nginx configuration for both static and proxy caching.

Cache-ControlNGINXSpring MVC
0 likes · 21 min read
Master Browser Caching: HTTP Headers, Spring MVC Code, and Nginx Configuration
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Nov 9, 2016 · Frontend Development

Master Browser Cache: Using Expires, max-age, ETag to Speed Up Web Pages

This article explains the fundamentals of browser caching, detailing how Expires and Cache‑Control headers such as max‑age, Last‑Modified, and ETag work together to reduce latency, bandwidth usage, and improve user experience, and provides step‑by‑step examples of common caching strategies in practice.

Browser CacheCache-ControlETag
0 likes · 11 min read
Master Browser Cache: Using Expires, max-age, ETag to Speed Up Web Pages
Art of Distributed System Architecture Design
Art of Distributed System Architecture Design
May 23, 2016 · Information Security

Testing HTTP Header Parameters for SQL Injection: Coverage, Tools, and Best Practices

The article examines how HTTP header and cookie parameters can serve as SQL injection vectors, evaluates the coverage of commercial and open‑source web vulnerability scanners, demonstrates manual testing techniques, and recommends tools such as sqlmap for comprehensive security assessments.

SQL injectionSQLMapWeb Security
0 likes · 13 min read
Testing HTTP Header Parameters for SQL Injection: Coverage, Tools, and Best Practices
Architecture Digest
Architecture Digest
Mar 8, 2016 · Frontend Development

Understanding Browser Caching: Strong and Negotiated Cache Mechanisms

This article explains the fundamentals of browser caching, covering strong and negotiated cache principles, HTTP header configurations such as Expires and Cache‑Control, practical code examples for managing cache in Java, and common development techniques to control or bypass caching for optimal web performance.

Strong CacheWeb Performancebrowser caching
0 likes · 16 min read
Understanding Browser Caching: Strong and Negotiated Cache Mechanisms
21CTO
21CTO
Jan 26, 2016 · Frontend Development

Master Browser Caching: Strong vs. Negotiated Cache Explained

This article explains the fundamentals of browser caching, compares strong and negotiated cache mechanisms, shows how Expires and Cache‑Control headers work, provides Java code examples for managing cache, and offers practical tips for avoiding stale resources during development.

Cache-ControlWeb Developmentbrowser caching
0 likes · 19 min read
Master Browser Caching: Strong vs. Negotiated Cache Explained
21CTO
21CTO
Aug 17, 2015 · Frontend Development

Mastering Browser Caching: How HTTP Headers Control What You See

This article explains how browsers cache resources using HTTP headers like Expires, Cache‑Control, Last‑Modified, and ETag, describes non‑HTTP meta tag tricks, outlines which requests cannot be cached, and shows how different user actions affect cache behavior.

Cache-ControlWeb Performancebrowser caching
0 likes · 10 min read
Mastering Browser Caching: How HTTP Headers Control What You See
21CTO
21CTO
Aug 14, 2015 · Fundamentals

Why Web Pages Show Garbled Text: Charsets, Encodings & HTTP Headers

This article explains how computers store and display characters using binary, defines character sets and encodings such as ASCII, GB2312, GBK, GB18030, BIG5 and Unicode, compares UTF‑8, UTF‑16, UTF‑32, and describes related HTTP headers like Accept‑Charset, Content‑Type, and Content‑Encoding.

ASCIICharsetGB18030
0 likes · 20 min read
Why Web Pages Show Garbled Text: Charsets, Encodings & HTTP Headers
Art of Distributed System Architecture Design
Art of Distributed System Architecture Design
Jul 16, 2015 · Information Security

Beyond GET/POST: Testing HTTP Headers and Cookies for SQL Injection

This article examines how web vulnerability scanners handle non‑traditional input vectors such as HTTP headers and cookies, demonstrates manual exploitation techniques for header‑based SQL injection, compares scanner coverage and accuracy, and offers practical guidance for developers and penetration testers.

SQL injectionSQLMapWeb Security
0 likes · 14 min read
Beyond GET/POST: Testing HTTP Headers and Cookies for SQL Injection