From b034acb10960a404262602920cb07e63455f7dc3 Mon Sep 17 00:00:00 2001 From: ertopogo Date: Sun, 25 Jan 2026 13:50:10 +0100 Subject: antel, adaptation des chemins url --- app-management.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'app-management.md') diff --git a/app-management.md b/app-management.md index 1f9f326..8fcb3db 100644 --- a/app-management.md +++ b/app-management.md @@ -124,6 +124,21 @@ curl -i -H "Origin: http://192.168.99.22:8000" http://192.168.99.22:9000/store/p - `http://192.168.99.22:9000/store/products` : endpoint backend teste. - Attendu : `Access-Control-Allow-Origin: http://192.168.99.22:8000`. +Retour attendu (exemple) : +``` +HTTP/1.1 200 OK +Access-Control-Allow-Origin: http://192.168.99.22:8000 +Vary: Origin +Access-Control-Allow-Credentials: true +Content-Type: application/json; charset=utf-8 +``` + +- `HTTP/1.1 200 OK` : le backend repond sans erreur. +- `Access-Control-Allow-Origin` : l'origine autorisee (doit matcher le storefront). +- `Vary: Origin` : la reponse depend de l'origine envoyee. +- `Access-Control-Allow-Credentials` : autorise cookies/credentials. +- `Content-Type` : format de la reponse (JSON attendu). + ### D) Verifier la base (depuis un conteneur temporaire) ``` -- cgit v1.2.3