Aufgabe 38: CORS & API-Sicherheit #13
Reference in New Issue
Block a user
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?
Ziel
CORS zwischen Article-Server (Port 8890) und Chatbot (Port 5002) korrekt konfigurieren. API-Endpunkte absichern.
Ist-Stand
/nanobanana?key=...,/publish)/api/submission/<id>/set-image)Akzeptanzkriterien
CORS
Access-Control-Allow-Origin: https://chat.datenhimmel.work(oder*für Dev)Access-Control-Allow-Methods: GET, POST, OPTIONSAccess-Control-Allow-Headers: Content-Type, AuthorizationAPI-Sicherheit
/api/*-Endpunkte: Content-Type-Validierung (JSON only)/api/submission/<id>/set-image: Validiere Submission-ExistenzDateien
app.py— Flask-CORS (flask-cors oder manuell)article_server.py— CORS-Headertests/test_cors.py— NEUQualität