Skip to main content
{/}codefunc
← All articles

Web & API

HTTP, tokens, meta tags, cron, and API workflows.

Protocols and tokens you touch daily — JWT structure, HTTP semantics, cron schedules, and the security boundary between client and server.

What browser tools can show you, and what must stay on the backend.

Topics covered

  • JWT header, payload, and signature anatomy
  • Token debugging without exposing production secrets
  • API and authentication concepts for frontend developers

Articles

23
Web & API

Content-Type and MIME Types: Headers, Uploads, and API Responses

Get Content-Type right for APIs, file uploads, and static assets — charset parameters, multipart boundaries, sniffing risks, and a practical MIME lookup workflow.

Aug 8, 20265 minRead
Web & API

HTML Entities and Character References: Escape Correctly in Markup

Named and numeric HTML entities, when to encode, XSS pitfalls, and how entity lookup pairs with MIME awareness when pasting content into HTML and email.

Aug 7, 20266 minRead
Web & API

Inspecting UUIDs and ULIDs: Version, Variant, and Embedded Timestamps

Decode UUID and ULID strings to read version bits, variants, and timestamps — a practical debugging guide for APIs, logs, and database keys.

Aug 4, 20266 minRead
Web & API

Base58 Encoding Explained: Bitcoin Addresses, IPFS CIDs, and Compact IDs

Learn when Base58 beats Base64 — alphabet rules, leading-zero handling, checksum variants, and how to encode or decode safely in the browser.

Aug 2, 20266 minRead
Web & API

HMAC Request Signing for Webhooks: Canonical Strings, Timing-Safe Compare, and Fixtures

How HMAC signatures protect webhooks — canonical message construction, hex vs Base64 encodings, timing-safe comparison concepts, and building reliable test fixtures.

Jul 28, 20266 minRead
Web & API

IP Subnetting for Frontend Developers: CIDR, VPCs, and Local Networks

CIDR notation explained for frontend and full-stack developers — private ranges, VPC subnets, localhost quirks, and how to read /24 vs /16 without memorizing the whole CCNA.

Jul 27, 20265 minRead
Web & API

Password Generators and Entropy: Character Sets, CSPRNG, and What Not to Hash

How password entropy works, why character sets matter, when browser CSPRNG is enough, and why generated passwords are not a substitute for proper password storage hashing.

Jul 23, 20267 minRead
Web & API

URL Anatomy and Percent-Encoding: Query Strings Without the Bugs

Break down URL parts, encode query values correctly, and know when to use encodeURIComponent vs encodeURI — plus reserved characters that break APIs.

Jul 22, 20266 minRead
Web & API

AES in the Browser: Web Crypto Demos vs Production Key Management

Use AES-GCM with Web Crypto for demos and learning, understand IV and auth tags, and know why inventing browser-only crypto protocols fails in production.

Jul 18, 20266 minRead
Web & API

Generate curl Snippets from OpenAPI to Reproduce API Bugs

Turn OpenAPI operations into accurate curl commands, attach auth headers correctly, and use snippets to reproduce frontend API failures for backend teammates.

Jul 18, 20266 minRead
Web & API

Browser Hashing with SHA: Checksums, Web Crypto, and When to Use HMAC

Learn SHA-1/256/384/512 in the browser, the difference between checksums and password hashing, how Web Crypto digests work, and when HMAC belongs in your frontend workflow.

Jul 16, 20266 minRead
Web & APIFeatured

CORS Headers for Frontend Developers: Preflight, Credentials, and Common SPA Mistakes

Understand browser CORS, OPTIONS preflight, Access-Control-Allow-Origin, and credentials mode — plus the SPA misconfigurations that waste hours in production debugging.

Jul 16, 20267 minRead
Web & APIFeatured

TOTP 2FA Explained: RFC 6238, Base32 Secrets, and Clock Skew

How time-based one-time passwords work — shared Base32 secrets, 30-second windows, HMAC algorithms, clock skew, and why browser TOTP tools are for test secrets only.

Jul 13, 20266 minRead
Web & APIFeatured

Content Security Policy for SPAs: Directives, Nonces, and Fixing React/Vite Breakage

Configure CSP for single-page apps — script-src with nonces and hashes, common React and Vite failures, CORS interplay, reporting, and a practical rollout checklist.

Jul 12, 20266 minRead
Web & APIFeatured

Robots.txt Checker: How to Test, Validate, and Fix Crawl Rules

A practical guide to robots.txt — syntax, common mistakes, how to check and validate your file, and when Disallow blocks indexing vs crawling.

Jul 11, 20266 minRead
Web & APIFeatured

Unix Timestamps and ISO-8601 Dates: Seconds, Milliseconds, and Safe Conversion

How to convert Unix epoch seconds and milliseconds, read JWT exp claims, format ISO-8601 correctly, and avoid DST and timezone bugs in APIs and frontends.

Jul 11, 20266 minRead
Web & APIFeatured

Base64 Encoding for the Web: Data URLs, Auth Headers, and When Not to Use It

A practical guide to Base64 and Base64url on the web — encoding binaries for data URLs and Authorization headers, padding rules, size costs, and when client-side tools keep secrets offline.

Jul 10, 20267 minRead
Web & API

Cron Expressions Explained: Fields, Syntax, and the Gotchas That Miss Runs

A complete guide to cron syntax — the five fields, special characters, real-world examples, and the timezone, day-of-week, and non-standard pitfalls that silently break schedules.

Jul 8, 20265 minRead
Web & API

HTTP Headers and Cookies Decoded: Request, Response, and Set-Cookie

Parse request and response headers, understand Set-Cookie attributes, and avoid User-Agent sniffing traps — with practical debugging workflows for APIs and browsers.

Jul 8, 20266 minRead
Web & API

ULID vs UUID vs Nano ID: Choosing the Right Identifier

A practical comparison of UUID, ULID, and Nano ID — sortability, index performance, collision odds, and URL safety — so you can pick the right ID format for your database, API, and URLs.

Jul 8, 20266 minRead
Web & API

How to Verify a JWT Signature (Without Leaking Secrets)

Decoding a JWT is not verifying it. Learn how signature verification works, the alg:none and algorithm-confusion attacks to avoid, which claims to check, and how to inspect tokens safely in development.

Jul 8, 20264 minRead
Web & API

REST APIs for Frontend Developers: Requests, Responses, and Error Handling

A practical guide to consuming REST APIs in frontend applications — HTTP methods, status codes, fetch patterns, authentication, error handling, and debugging techniques.

Jul 7, 20269 minRead
Web & APIFeatured

JWT Anatomy: Header, Payload, and Signature Explained

A deep dive into JSON Web Token structure, signing algorithms, common vulnerabilities, and a safe workflow for decoding tokens in development without exposing production secrets.

Jul 3, 20267 minRead

Search tools

Find a developer tool