---
title: "Comment by RequestFox on \"Local HTTPS and CORS: Pointing a Browser Frontend at a Mockoon Server\" | Hashnode"
description: "Splitting TLS and CORS into two separate checks is the most useful part of this. Two small additions for this setup: if the mock echoes the request's Origin bac"
url: "https://hashnode.com/posts/mockoon-https-tls-cors-browser-frontend/6aed934a0aa60f426d979355/comment/6aed9cef05f78312fe1fbd78"
---

[Discussion](https://hashnode.com/posts/mockoon-https-tls-cors-browser-frontend/6aed934a0aa60f426d979355)

Comment [Local HTTPS and CORS: Pointing a Browser Frontend at a Mockoon Server](https://hashnode.com/posts/mockoon-https-tls-cors-browser-frontend/6aed934a0aa60f426d979355)

[RequestFox](https://hashnode.com/@requestfox)

[Nov 6](https://hashnode.com/posts/mockoon-https-tls-cors-browser-frontend/6aed934a0aa60f426d979355/comment/6aed9cef05f78312fe1fbd78)

Splitting TLS and CORS into two separate checks is the most useful part of this. Two small additions for this setup: if the mock echoes the request's Origin back instead of a fixed value, also send "Vary: Origin", so a cache in between can't hand one origin's answer to another. And Access-Control-Max-Age helps while you work, but the browser keeps using the cached preflight until it expires (Chromium caps it at 2 hours, Firefox at 24), so a CORS rule you just changed can look like it didn't apply. Keep the max age short while you're still changing rules.
