[Bug] CORS_ORIGINS fehlt in apps/api/.env.example #525
Labels
No labels
app/archiv
app/einkaufslisten
app/imap-client
app/wissensbasis
arch-answered
arch-question
area/api
area/auth
area/infra
area/mobile
area/shared
area/ui
area/web
portfolio-status
prio/high
prio/low
prio/medium
roadmap/public
size/l
size/m
size/s
size/xl
size/xs
status/blocked
status/needs-info
type/bug
type/chore
type/docs
type/feature
type/idea
type/refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
admin-mrrm/mrrmlabapp#525
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Beobachtetes Verhalten
Web-App wirft beim Laden von Daten
NetworkError when attempting to fetch resource, obwohl die API läuft und erreichbar ist.Ursache
main.tsruftapp.enableCors(...)nur auf, wennCORS_ORIGINSgesetzt ist. Ohne diese Variable schickt die API keine CORS-Header, der Browser blockt den Cross-Origin-Request vonlocalhost:5173nachlocalhost:3000. Die Variable fehlte komplett in.env.example, war beim lokalen Setup also nicht ersichtlich.Erwartetes Verhalten
.env.exampledokumentiertCORS_ORIGINSinkl. Beispielwert für lokale Entwicklung.Umgebung