mirror of
https://github.com/storytold/craft-wiki.git
synced 2026-11-25 08:51:03 +01:00
Chrome warns because Safe Browsing lists some craft.wiki pages as phishing, and the Worker's sign-in page was a bare "Craft Wiki sign-in" title served from an /api/ path with no branding, no explanation and no security headers. Give it the wiki's branding, say that the password prompt belongs to discord.com, and send a CSP with framing, referrer and content-type headers. Add a script and a daily workflow that report Google's verdict for the domain, so a listing is noticed without waiting for a browser to show it.
20 lines
559 B
JSON
20 lines
559 B
JSON
{
|
|
"name": "craft-wiki",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "astro dev",
|
|
"build": "node scripts/prepare-cms.mjs && astro build",
|
|
"preview": "astro preview",
|
|
"check:safebrowsing": "node scripts/check-safebrowsing.mjs craft.wiki"
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/starlight": "^0.42.10",
|
|
"@fontsource-variable/archivo": "^5.3.0",
|
|
"@fontsource-variable/geist-mono": "^5.3.0",
|
|
"@fontsource-variable/inter": "^5.3.0",
|
|
"@fontsource/instrument-serif": "^5.3.0",
|
|
"@sveltia/cms": "^0.261.0",
|
|
"astro": "^7.4.7"
|
|
}
|
|
}
|