Local HTTPS and CORS: Pointing a Browser Frontend at a Mockoon Server
How to secure a local Mockoon server with trusted HTTPS and the right CORS headers.
Tag archive
How to secure a local Mockoon server with trusted HTTPS and the right CORS headers.
How XPath matching distinguishes near-identical SOAP bodies while ignoring irrelevant formatting.
Why a retired resource should return 410, not 404, and how to mock the permanent response.
Quick guidance on mockoon data buckets: shared state across routes vs spec-based state.
Quick guidance on stub priority when two wiremock mappings match the same request.
Quick guidance on mocking a circuit breaker: 503 while open, then a half-open recovery.
Mocking a Health Check and Readiness Probe That Fails Until the Stub Is Ready — a practical, contract-based look at the failure mode and how to handle it.
Mocking File Uploads: Returning 413 for an Oversized Payload and 201 on Success — a practical, contract-based look at the failure mode and how to handle it.
How to run the mock in Docker Compose for parity across machines and CI, while keeping a local spec server for fast edits.
How WireMock verify asserts an interaction and why an independent spec-based check is needed to validate the response.
How to stub a server that never responds so the client timeout, backoff, and idempotency path actually gets tested.
Anchor stub responses to OpenAPI examples and template only genuinely dynamic fields, so the mock cannot overfit the test.