OverviewFilesCommitsIssuesDocsReleasesPeers

ANProto commits / 83d9cd8

try to fix cors
83d9cd85984d0e8ff9b575b1ccc3388fc73fd97d
by Everett Bogue <ev@evbogue.com> · 2025-09-24T12:38:46.000Z

Changed files (1) +6 -1

example.js +6 -1
……@@ -142,6 +142,11 @@ getbutton.onclick = async () => {
142142 return await c.html(html)
143143})
144144
145app.use('*', serveStatic({ root: './' }))
145app.use('*', serveStatic({
146 root: './',
147 onFound: (_path, c) => {
148 c.header("Access-Control-Allow-Origin", "*")
149 }
150 }))
146151
147152export default app