Einbau-Skript news.js für Kundenwebsites

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
knsoandClaude Opus 5.5 committed 2026-09-30 17:16:37 +00:00
1 parent 5a09d060a1
commit 035d1d5517
5 files changed
+547

No files matched your search

+6
View File
@@ -91,6 +91,12 @@ app.get('/api/health', async (_req, res) => {
})
})
// Einbau-Skript fuer Kundenwebsites: darf von fremden Seiten geladen werden, 5 Minuten Cache
app.use('/embed/', (_req, res, next) => {
res.set('Cache-Control', 'public, max-age=300')
res.set('Access-Control-Allow-Origin', '*')
next()
})
app.use(express.static(publicDir))
app.get('/dashboard.html', (req, res, next) => {