diff --git a/mdx/article/2019/cors/cors.mdx b/mdx/article/2019/cors/cors.mdx index a421985d67..631deec90b 100644 --- a/mdx/article/2019/cors/cors.mdx +++ b/mdx/article/2019/cors/cors.mdx @@ -14,6 +14,7 @@ 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 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'; @@ -21,6 +22,12 @@ import non_cors_request_flow from '#root/mdx/article/2019/cors/non_cors_request_ 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: diff --git a/project/zemn.me/bio/BUILD.bazel b/project/zemn.me/bio/BUILD.bazel index f334bd6a1c..c96e55866b 100644 --- a/project/zemn.me/bio/BUILD.bazel +++ b/project/zemn.me/bio/BUILD.bazel @@ -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", diff --git a/project/zemn.me/bio/bio.ts b/project/zemn.me/bio/bio.ts index 4b33b224f5..acfec04e97 100644 --- a/project/zemn.me/bio/bio.ts +++ b/project/zemn.me/bio/bio.ts @@ -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'; @@ -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',