惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
腾讯CDC
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
L
LangChain Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
P
Proofpoint News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
IT之家
IT之家
A
About on SuperTechFans
H
Help Net Security

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
The Browser Boundary Model: APIs, CORS, Cookies, JSON, Fi...
Inamullah Khan · 2026-05-31 · via DEV Community

Inamullah Khan


Most developers understand CORS, cookies, JSON, redirects, file uploads, and browser storage separately.

The harder part is understanding how they interact as boundaries inside the browser.

The browser is not just where your UI runs. It is also a security boundary.

It decides:

Which requests are allowed

Which responses can be read

Which cookies travel

Which origins are trusted

Which files are accessible

Which data stays isolated

Which URLs become public or discoverable

This matters because many production bugs happen when teams treat the browser as “just the frontend.”

Example 1: CORS is not authorization

CORS controls whether a browser can read a cross-origin response.

It does not prove that the user is allowed to perform the action.

Your API still needs to verify:

Authentication

Authorization

Object ownership

Role permissions

Business rules

A successful preflight request does not mean the request is safe.

Example 2: Frontend route guards are not enough

A protected frontend route only hides UI.

It does not protect backend data.

If the API allows a user to request another user’s object, the frontend cannot fix that. The server must check access to the exact object being requested.

Example 3: Cookies and JSON cross boundaries differently

Cookies may be sent automatically depending on domain, path, SameSite, Secure, and credentials settings.

JSON is usually sent explicitly, but APIs can still leak sensitive fields if they return more data than the UI needs.

Both need boundary review.

Example 4: File uploads are real data boundaries

PDFs, images, CSVs, and JSON files can contain:

Metadata

Private records

Tokens

Malformed data

Embedded content

Unexpected payloads

A file upload is not just an input field. It is a data ingestion workflow.

Example 5: SEO also creates boundaries

Public URLs, canonical tags, redirects, sitemaps, and indexed pages decide what becomes discoverable.

A page, file, preview, or generated URL can become public even when the original workflow felt private.

A practical 5-question model

Before shipping a browser-based workflow, ask:

Which origin created this request or data?
Can credentials travel with it?
Who can read the response?
Does the server verify access to the exact object?
Where does the data persist after the workflow ends?

If these questions are unclear, the workflow needs more architecture review.

The browser is not just a client.

It is a boundary layer between users, APIs, files, cookies, storage, redirects, and public URLs.

Full guide:
https://www.toolsfam.com/blog/browser-boundary-model-api-cors-cookies-json-file-workflows

Explore practical browser tools:
https://www.toolsfam.com/tools