Skip to content

v1.99.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 13:02
· 31 commits to main since this release

Which file do I need?

You want Download
The desktop app ApiTester.App.exe
The command line certapi.exe
HTTP/3 (--http3) with either msquic.dll, saved in the same folder

Both are self-contained: nothing else to install, no .NET needed. Keep them in one folder and the app's update prompt, or certapi update, keeps them current.

With Scoop: scoop install https://github.com/Real-Fruit-Snacks/certapi/releases/download/v1.99.0/certapi.json

Every file's SHA-256 is in SHA256SUMS.txt. The rest are for building from source (the source at this tag, and a dev kit that builds and tests with no network) and a copy of the fuzz wordlist built into certapi.exe.

What's new

CORS, checked the way a browser checks it. cors now follows redirects hop by hop, checks Private
Network Access, grades a loose policy with --audit (WebSockets too), judges a whole browser
capture with --from-har, and prints the server fix with --suggest. Suites, doctor and the app
can check CORS as they go. mock and serve can answer with a strict, a public or a deliberately
broken CORS policy. Nothing that worked before needs changing.

Added

  • cors --audit: probes for the CORS mistakes that let another site read an API's answers — any
    origin reflected, null trusted, look-alike domains that pass a substring or regular-expression
    check, plain http trusted, every subdomain trusted, preflights that grant anything — graded high
    to info, high when credentials are allowed too. Only GET and OPTIONS are sent; exit 1 on a high
    or medium finding.
  • cors --private-network: checks Private Network Access (Access-Control-Request-Private-Network
    on the preflight, Access-Control-Allow-Private-Network in the answer). A public page calling a
    private or loopback address is pointed out either way. mock --cors grants it.
  • cors follows redirects as a browser does: each hop CORS-checked, a new preflight where needed,
    POST to GET on 301/302/303, Authorization dropped across origins, and Origin: null after a
    cross-origin redirect. --max-redirs and --no-redirect apply; the hops are reported.
  • cors takes several --origin and -X values (repeated or comma-separated) and prints a table.
  • A cors <origin> allowed|credentials|blocked assertion for send --assert, saved requests and
    run, and a CORS target on the app's Tests tab. The request is sent with that Origin.
  • doctor --origin <o>: a final cors stage.
  • The app's Diagnostics view shows the CORS verdict for a request sent with an Origin header.
  • mcp cors_check: audit and privateNetwork arguments; redirects are followed with every
    hop checked against the allowlist.
  • cors --from-har <file>: every cross-origin request in a browser capture, judged from the
    recorded preflight and response; --origin judges them as if from another page, --live
    re-checks each against the server now.
  • run --origin <o> (and --cors-credentials): a CORS check on every request of a suite, in its
    table, JUnit and markdown reports. Nothing is written to the collection.
  • cors --suggest [<framework>]: the server configuration that grants what was checked, as an
    allow-list, for ASP.NET Core, nginx, Express, Spring, IIS and AWS API Gateway.
  • cors --preflight-without-cert: sends the preflight without the client certificate, as the Fetch
    standard does, to catch a server that demands the certificate in the TLS handshake.
  • WebSockets: cors ws(s)://… --origin tries a handshake from each origin; --audit grades
    cross-site WebSocket hijacking (any origin, null, look-alikes, plain http accepted). ws --origin
    sends an Origin header.
  • The app: a CORS… button opens a full check of the current request — preflight, redirects,
    audit, WebSocket origins, and the fix for a chosen server.
  • mock --cors-headers, --cors-methods, --cors-expose and --cors-max-age: a fixed CORS policy
    instead of granting whatever a preflight asks. --cors-star answers * without credentials.
  • mock --cors-fault: deliberately broken CORS — double-origin, preflight-401,
    preflight-redirect, preflight-only, no-vary.
  • A --routes route can carry its own "cors" policy (false, true, or an object), replacing
    --cors for that route.
  • serve --cors-methods and --cors-no-credentials, and profile keys corsHeaders, corsExpose,
    corsMethods, corsMaxAge and corsCredentials.
  • serve --cors logs, once per site, when it replaces an upstream's own CORS headers.

Full Changelog: v1.98.0...v1.99.0