From db7b2c86d51dfbb1a7b6711df027abe9ed3ac708 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sat, 3 Apr 2021 09:52:53 -0400 Subject: [PATCH] clean up CSP --- content/notes/my-first-code/index.md | 4 ++-- content/notes/y2k-sandbox/index.md | 2 +- content/previously/index.md | 2 +- netlify.toml | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/content/notes/my-first-code/index.md b/content/notes/my-first-code/index.md index 9a7228a1..2ea0d843 100644 --- a/content/notes/my-first-code/index.md +++ b/content/notes/my-first-code/index.md @@ -16,7 +16,7 @@ draft: false {{< image src="images/badges.png" width="537" alt="Code Quality: A for effort" />}} -I recently published my terrible, horrible, no good, very bad [first HTML site](https://site.y2k.app/) and [first PHP project](https://github.com/jakejarvis/jbb#readme) ever and developed a new addiction to Web 1.0 nostalgia, fed by others who were brave enough to do the same. +I recently published my terrible, horrible, no good, very bad [first HTML site](https://jakejarvis.github.io/my-first-website/) and [first PHP project](https://github.com/jakejarvis/jbb#readme) ever and developed a new addiction to Web 1.0 nostalgia, fed by others who were brave enough to do the same. So, I started compiling an [awesome-list of other "first code" on GitHub](https://github.com/jakejarvis/awesome-first-code). It was originally aimed towards those of us who grew up in the Geocities and FrontPage and Macromedia Flash era, but coders of all ages are welcome to dust off that floppy disk or 256MB USB thumb drive (or the [Wayback Machine](https://archive.org/web/), if you can remember your first screen name 😬) and commit your first project unmodified to GitHub for posterity — and proudly [link to it](https://github.com/jakejarvis/awesome-first-code/edit/master/readme.md) on the list! (I'm trying very hard to make this a cool trend, if you couldn't tell.) @@ -26,7 +26,7 @@ Hopefully we can all look back at our first projects and be proud of how far we' {{< image src="images/jbb-logo.png" width="640" link="https://github.com/jakejarvis/jbb" >}}[Jake's Bulletin Board](https://github.com/jakejarvis/jbb){{< /image >}} -Aside from my [first HTML creation](https://site.y2k.app/) (circa 2001), my first real coding project was in 2003: a PHP 4 masterpiece creatively titled **Jake's Bulletin Board**. I've published the [source code in full on GitHub](https://github.com/jakejarvis/jbb) for your viewing pleasure and highlighted the best/worst parts below. +Aside from my [first HTML creation](https://jakejarvis.github.io/my-first-website/) (circa 2001), my first real coding project was in 2003: a PHP 4 masterpiece creatively titled **Jake's Bulletin Board**. I've published the [source code in full on GitHub](https://github.com/jakejarvis/jbb) for your viewing pleasure and highlighted the best/worst parts below. ## Usage diff --git a/content/notes/y2k-sandbox/index.md b/content/notes/y2k-sandbox/index.md index 34843147..91c6b541 100644 --- a/content/notes/y2k-sandbox/index.md +++ b/content/notes/y2k-sandbox/index.md @@ -15,7 +15,7 @@ draft: false {{< gh-buttons username="jakejarvis" repo="y2k" >}} -A few months ago, I stumbled upon [my first website ever](https://site.y2k.app/) on an old floppy disk. Despite the instant cringing, I [uploaded it](https://github.com/jakejarvis/my-first-website) to GitHub, [collected other iterations](/previously/), and made an [#awesome-list](https://github.com/jakejarvis/awesome-first-code) of others who were brave and/or shameless enough to do the same. But why not take that ~~one~~ 1,000 steps further? +A few months ago, I stumbled upon [my first website ever](https://jakejarvis.github.io/my-first-website/) on an old floppy disk. Despite the instant cringing, I [uploaded it](https://github.com/jakejarvis/my-first-website) to GitHub, [collected other iterations](/previously/), and made an [#awesome-list](https://github.com/jakejarvis/awesome-first-code) of others who were brave and/or shameless enough to do the same. But why not take that ~~one~~ 1,000 steps further? Introducing the [**Y2K Sandbox**](https://y2k.app/) — with fully-featured, fully-isolated, on-demand [**Windows Millennium Edition®**](https://www.youtube.com/watch?v=CaNDeyYP98A) virtual machines, simply to experience my first website in its natural Internet Explorer 5 habitat. And maybe play some [3D Pinball: Space Cadet](https://en.wikipedia.org/wiki/Full_Tilt!_Pinball#3D_Pinball_for_Windows_%E2%80%93_Space_Cadet). Oh, and [Microsoft Bob](https://en.wikipedia.org/wiki/Microsoft_Bob) is there too if you want to say hello and catch up. 🤓 diff --git a/content/previously/index.md b/content/previously/index.md index d70602ce..8ceb00b1 100644 --- a/content/previously/index.md +++ b/content/previously/index.md @@ -69,7 +69,7 @@ css: | **🚨 Trigger warning:** marquees, Comic Sans MS, popup windows, color: limegreen... [Click for the **_FULL_** experience anyway.](https://y2k.app/)
- {{< iframe src="https://site.y2k.app/" width="850" height="500" title="My Terrible, Horrible, No Good, Very Bad First Website" >}} + {{< iframe src="https://jakejarvis.github.io/my-first-website/" width="850" height="500" title="My Terrible, Horrible, No Good, Very Bad First Website" >}}
November 2001 (archived source)
diff --git a/netlify.toml b/netlify.toml index 6c1208f3..aa451047 100644 --- a/netlify.toml +++ b/netlify.toml @@ -121,16 +121,16 @@ # https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/secure-pages/ Content-Security-Policy = ''' default-src 'self'; - connect-src 'self' https://*.ampproject.net https://csp-collector.appspot.com/csp/amp https://api.github.com https://starman.fathomdns.com https://platform.twitter.com; + connect-src 'self' https://*.ampproject.net https://csp-collector.appspot.com/csp/amp https://api.github.com https://platform.twitter.com; font-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com; form-action 'none'; frame-ancestors 'self'; - frame-src 'self' https://jakejarvis.github.io https://*.ampproject.net https://cdn.ampproject.org https://app.usefathom.com https://buttons.github.io https://codepen.io https://cdpn.io https://platform.twitter.com https://player.vimeo.com https://www.youtube-nocookie.com https://site.y2k.app; + frame-src 'self' https://jakejarvis.github.io https://*.ampproject.net https://cdn.ampproject.org https://app.usefathom.com https://buttons.github.io https://codepen.io https://cdpn.io https://platform.twitter.com https://player.vimeo.com https://www.youtube-nocookie.com; img-src 'self' data: https:; manifest-src 'self'; media-src 'self' data: https:; object-src 'none'; - script-src 'self' 'unsafe-eval' https://cdn.ampproject.org/v0.js https://cdn.ampproject.org/v0/ https://cdn.ampproject.org/viewer/ https://cdn.ampproject.org/rtv/ https://3p.ampproject.net https://buttons.github.io https://starman.fathomdns.com https://gist.github.com https://syndication.twitter.com https://platform.twitter.com https://player.vimeo.com; + script-src 'self' 'unsafe-eval' https://cdn.ampproject.org/v0.js https://cdn.ampproject.org/v0/ https://cdn.ampproject.org/viewer/ https://cdn.ampproject.org/rtv/ https://3p.ampproject.net https://buttons.github.io https://gist.github.com https://syndication.twitter.com https://platform.twitter.com https://player.vimeo.com; style-src 'self' 'unsafe-inline' https://cdn.ampproject.org/rtv/ https://fonts.googleapis.com https://github.githubassets.com; worker-src 'self'; block-all-mixed-content; @@ -187,7 +187,7 @@ # this repo and domain squeaky clean: [[redirects]] from = "/y2k/*" - to = "https://site.y2k.app/:splat" + to = "https://jakejarvis.github.io/my-first-website/:splat" status = 302 [[redirects]] from = "/ios-trackers/*"