Use this when web security controls misbehave.
Web Security Troubleshooting
Troubleshoot web security by inspecting response headers and cookies in browser developer tools, reading CSP violation reports, testing with a proxy like Burp or ZAP, and checking server and WAF logs.
1. Broken after hardening: CSP blocks, CORS errors, SameSite cookies, WAF false positives.
2. Read browser console messages.
3. Adjust policies precisely.
4. Don't remove protections wholesale.
5. Retest.
browser → headers/policies → errors → targeted fix
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
curl -sS -D - -o /dev/null https://<host>/Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verify web security with request correlation, intended control decision and browser-visible outcome Verify boundary
Verify web security by replaying one bounded original request and expect the edge/WAF request ID to show the intended Allow or Block rule, while the application response reports the expected HTTP status such as 200, 401 or 403. Confirm browser developer logs contain no unexpected CORS/CSP violation and that session cookies use the intended security attributes, then repeat the user action. A 200 response shows the server accepted that request, but it does not show browser policy, authorization of other resources or absence of a vulnerability.
Step 2 Known-good, broken and when it is fixed Verify boundary
Verification for Web Security → Web Security Troubleshooting must discriminate known-good from broken/suspicious state. With curl -sS -D - -o /dev/null https://<host>/, known-good is: TLS and HTTP response semantics match the intended protected endpoint. Broken/suspicious is: certificate/connectivity/redirect/status/header behavior differs from the known-good path. Read back the same target after the minimal approved change, then inspect TLS validation, reverse proxy/WAF policy, authentication and application logs for the same request.
Step 3 Branch web security faults at edge policy, authentication, authorization, application and browser controls Narrow the fault
If a web security request is blocked before reaching the application, inspect WAF/reverse-proxy event ID and matched rule. If the application receives the request but returns 401, verify authentication/session and token scope; if it returns 403, inspect authorization and resource policy. If the server returns 200 but the browser still fails, inspect CORS, CSP, cookie attributes and mixed-content errors. If only one path or payload triggers the problem, compare normalized request fields and rule matches instead of disabling the entire control.
Step 4 Common mistakes Narrow the fault
- Testing with browser cache and extensions active.
Step 5 Observation-driven troubleshooting tree Narrow the fault
Troubleshoot Web Security → Web Security Troubleshooting from one exact failing target, revision/input and timestamp. Capture curl -sS -D - -o /dev/null https://<host>/ before mutation, then branch by the first divergent observation: DNS/TLS fails, stay before HTTP; headers show wrong redirect/host/policy, inspect proxy/origin config; 401/403 appears, separate authentication from authorization; security headers/cookies are absent or contradictory, trace response owner; 2xx page loads but protected action fails, move to app/session/backend evidence. Typical failure signatures include expired/wrong-name certificate, incomplete chain, HTTP downgrade, missing HSTS/CSP, insecure cookie attributes, CORS/preflight error, proxy header confusion, WAF block, session fixation/expiry issue or front page healthy while protected action fails.
Step 6 Failure signatures, dependencies and operational guardrails Narrow the fault
Failure-signature and guardrail reference for Web Security → Web Security Troubleshooting: Expired/wrong-name certificate, incomplete chain, HTTP downgrade, missing HSTS/CSP, insecure cookie attributes, CORS/preflight error, proxy header confusion, WAF block, session fixation/expiry issue or front page healthy while protected action fails. Operational guardrail: A header-only curl response is a bounded endpoint/policy observation; browser behavior, JavaScript/CSP execution, authenticated session state and backend authorization need their own verification. Dependencies that can mimic the same symptom are DNS, CA trust, certificate renewal, SNI, load balancers/WAF, HSTS/CSP/CORS, secure cookie settings, IdP/session store, origin configuration and backend APIs/databases.
- Browser devtools show headers and cookies.
- CSP reports show blocked resources.
- Proxy tools test behaviour.
curl -v https://<site>— request/response- Browser devtools console (CSP/CORS errors) — client errors
- Server/WAF logs — blocked requests
ReferenceWhy it matters1 section · depth on demand
Web Security decisions span reverse proxy, WAF, session, authorization and browser enforcement
Web Security troubleshooting needs the full request path, not just an HTTP status code. The reverse proxy or WAF owns the first policy decision and can normalize or block a request before the application; application authorization and browser enforcement are separate owners that depend on forwarded identity, origin and session context. TLS termination and forwarded headers may change identity and scheme context. Record method, URL, host, client identity, request ID, response code and the component that generated it before relaxing web security policy.
ReferenceHow it works1 section · depth on demand
How it works
Web Security → Web Security Troubleshooting owns DNS and TLS endpoint identity, certificate chain, HTTP security headers, cookie/session attributes, reverse-proxy policy, authentication/authorization, content-security controls and the web application/backends behind them. Execution mechanics: The client resolves and connects, validates TLS, sends HTTP through any proxy/WAF, receives headers and cookies that establish browser policy, authenticates and accesses application routes whose own authorization and backend behavior must also be correct. Keep adjacent dependencies separate: DNS, CA trust, certificate renewal, SNI, load balancers/WAF, HSTS/CSP/CORS, secure cookie settings, IdP/session store, origin configuration and backend APIs/databases. The mapped read surface curl -sS -D - -o /dev/null https://<host>/ exposes HTTPS connection result, HTTP status and response headers from a documented read-only endpoint.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Web Security → Web Security Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://owasp.org/www-project-application-security-verification-standard/ · confidence 94%