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

Article on CORS #39

Merged
merged 41 commits into from
Oct 12, 2021
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
00d69d6
Add CORS headers
jakearchibald Sep 22, 2021
2f2396a
Draft
jakearchibald Sep 22, 2021
49fa729
Tweaks
jakearchibald Sep 22, 2021
732ae79
Notes
jakearchibald Sep 22, 2021
b0742dd
Tweaks and corrections
jakearchibald Sep 22, 2021
c73da7f
Tweak
jakearchibald Sep 22, 2021
4f24a7b
Addressing feedback
jakearchibald Sep 22, 2021
8084859
Update static-build/posts/2021/09/cors/index.md
jakearchibald Sep 24, 2021
8fe3642
Update static-build/posts/2021/09/cors/index.md
jakearchibald Sep 24, 2021
f7b526e
Update static-build/posts/2021/09/cors/index.md
jakearchibald Sep 24, 2021
4b53b1d
Update static-build/posts/2021/09/cors/index.md
jakearchibald Sep 24, 2021
94ce6b4
Update static-build/posts/2021/09/cors/index.md
jakearchibald Sep 24, 2021
a4abd16
Update static-build/posts/2021/09/cors/index.md
jakearchibald Sep 24, 2021
798c161
Update static-build/posts/2021/09/cors/index.md
jakearchibald Sep 24, 2021
1511def
Notes
jakearchibald Sep 25, 2021
e47376c
Same site component in progress
jakearchibald Sep 26, 2021
f1d020c
Site vs origin form
jakearchibald Sep 26, 2021
ba45627
Use 'live' list and detect IPs
jakearchibald Sep 27, 2021
d645acb
A bit about Vary
jakearchibald Sep 27, 2021
8ad653d
Bit about quirks mode
jakearchibald Sep 27, 2021
602ee59
Stressing then problem with no-cors
jakearchibald Sep 27, 2021
7b93026
Clarifying script visibility of errors
jakearchibald Sep 27, 2021
d57f296
Refactor site vs origin form
jakearchibald Sep 27, 2021
2046944
Better loading state for sitevsorigin
jakearchibald Sep 28, 2021
97f3c6e
Tweaks
jakearchibald Sep 28, 2021
dc6d67d
Tweaks
jakearchibald Oct 4, 2021
2ee3035
Add shell of CORS playground demo
jakearchibald Oct 4, 2021
9fda3b5
Sketching
jakearchibald Oct 5, 2021
4e67fb9
Speed up dev builds
jakearchibald Oct 9, 2021
902bdfd
Basic form styles
jakearchibald Oct 9, 2021
760a7a4
Adding headers
jakearchibald Oct 9, 2021
669d5be
Remove header and minor dep update
jakearchibald Oct 9, 2021
c89e7ba
Rest of the form
jakearchibald Oct 10, 2021
cba56fe
Making request
jakearchibald Oct 11, 2021
7852825
Redundant
jakearchibald Oct 11, 2021
0f4bb10
Showing result
jakearchibald Oct 11, 2021
53f2cb6
Tweaks and button styles
jakearchibald Oct 11, 2021
862446d
Polish
jakearchibald Oct 11, 2021
89b6d28
Theme
jakearchibald Oct 11, 2021
116dc7d
And done!
jakearchibald Oct 12, 2021
d948f10
Minor tweaks
jakearchibald Oct 12, 2021
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
20 changes: 14 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.3",
"@types/date-and-time": "^0.13.0",
"@types/dedent": "^0.7.0",
"@types/prismjs": "^1.16.2",
"cssnano": "^4.1.10",
"date-and-time": "^0.14.1",
"dedent": "^0.7.0",
"del": "^5.1.0",
"escape-html": "^1.0.3",
"feed": "^4.2.1",
Expand Down
5 changes: 5 additions & 0 deletions static-build/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
import { h } from 'preact';
import { Feed } from 'feed';
import dedent from 'dedent';

import { renderPage, writeFiles, getPostPath, getPostUrl } from './utils';
import IndexPage from './pages/index';
Expand All @@ -26,6 +27,10 @@ interface Output {
}
const toOutput: Output = {
'who/index.html': renderPage(<WhoPage />),
_headers: dedent`
/*
Access-Control-Allow-Origin: *
`,
};

// Paginated index pages
Expand Down
Loading