Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 2019 article CORS to zemn.me #7501

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion mdx/article/2019/cors/cors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@ medium: https://medium.com/@Zemnmez/if-cors-is-just-a-header-why-dont-attackers-

{/* should probably just get the SVGs of the below ... */}

import Image from 'next/image';

import Image from 'next/image.js';
import world_before_cors from '#root/mdx/article/2019/cors/world_before_cors.jpg';
import web_origin_concept from '#root/mdx/article/2019/cors/web_origin_concept.png';
import non_cors_request_flow from '#root/mdx/article/2019/cors/non_cors_request_flow.png';
import cors_request_flow_on_the_web from '#root/mdx/article/2019/cors/cors_request_flow_on_the_web.png';
import no_gods_no_masters from '#root/mdx/article/2019/cors/no_gods_no_masters.png';


*This is a rendering of an article originally hosted on Medium. The original
article along with its original formatting can be found [here][medium-cors].*

[medium-cors]: https://medium.com/@Zemnmez/if-cors-is-just-a-header-why-dont-attackers-just-ignore-it-63e57c323cef

# If CORS is just a header, why don’t attackers just ignore it?

Here’s a question from a co-worker I get quite often:
Expand Down
1 change: 1 addition & 0 deletions project/zemn.me/bio/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ts_project(
"//:node_modules/react-dom",
"//:node_modules/schema-dts",
"//mdx:mdx_js",
"//mdx/article/2019/cors:cors_js",
"//project/zemn.me/components/Article/types",
"//ts/iter",
"//ts/option",
Expand Down
6 changes: 3 additions & 3 deletions project/zemn.me/bio/bio.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { z } from 'zod';

import { frontmatter as articleCsp } from '#root/mdx/article/2014/csp.js';
import { frontmatter as articleCors } from '#root/mdx/article/2019/cors/cors.js';
import { frontmatter as articleClean } from '#root/mdx/article/2024/clean.js';
import { frontmatter as articleMissing } from '#root/mdx/article/2024/missing.js';
import { ArticleProps } from '#root/project/zemn.me/components/Article/types/article_types.js';
Expand Down Expand Up @@ -264,11 +265,10 @@ export const Bio = {
},
{
id: 'befbb9a3-5499-4f45-b251-fa899c178b4d',
date: date(2, 'aug', 2019),
title: en`If CORS is just a header, why don’t attackers just ignore it?`,
url: url`https://medium.com/@Zemnmez/if-cors-is-just-a-header-why-dont-attackers-just-ignore-it-63e57c323cef?source=your_stories_page---------------------------`,
url: new RelativeURL(`/article/2019/cors`),
description: en`article on common security misconceptions around CORS`,
tags: [writing, security],
...canonicaliseArticleMetadata(articleCors),
},
{
id: '9195a7e3-b02f-4eb5-8b47-6ae7a9900800',
Expand Down
Loading