---
title: "Discussion on \"The CORS header that quietly opened your API to every website\" | Hashnode"
description: "Discussion on \"The CORS header that quietly opened your API to every website\". A reflected Origin looks like a one-line convenience and behaves like an open door. Here is exactly how the exploit works — and corslock, a zero-config static gate that fails CI before the header ships."
url: "https://hashnode.com/posts/corslock-cors-misconfiguration-linter/6a76fff8d17723e628b05ff7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The CORS header that quietly opened your API to every website](https://jaytank.hashnode.dev/corslock-cors-misconfiguration-linter?utm_source=hashnode&utm_medium=feed)

A reflected Origin looks like a one-line convenience and behaves like an open door. Here is exactly how the exploit works — and corslock, a zero-config static gate that fails CI before the header ships.

Aug 8 · 8 min read · jaytank.hashnode.dev  
Read the article

-   [#security](https://hashnode.com/tag/security)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#devops](https://hashnode.com/tag/devops)
-   [#cors](https://hashnode.com/tag/cors)
-   [#go](https://hashnode.com/tag/go)

## Written by

[JAY TANK](https://hashnode.com/@jaytank)

@jaytank

  
[View profile](https://hashnode.com/@jaytank)

Engineering insights on building and scaling modern software.

Cloud &amp; Platform Engineer focused on building systems that scale and endure. I explore how infrastructure, automation, and engineering practices come together to support modern software teams.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
