diff options
| author | ertopogo <erwin.t.pombett@gmail.com> | 2026-01-25 13:50:10 +0100 |
|---|---|---|
| committer | ertopogo <erwin.t.pombett@gmail.com> | 2026-01-25 13:50:10 +0100 |
| commit | b034acb10960a404262602920cb07e63455f7dc3 (patch) | |
| tree | c72cd3263658511e6426ad0699789bc9e97ccd15 /app-management.md | |
| parent | cae02f56ec6954d7737a83c46e27a8b0ff9fdf10 (diff) | |
antel, adaptation des chemins url
Diffstat (limited to 'app-management.md')
| -rw-r--r-- | app-management.md | 15 |
1 files changed, 15 insertions, 0 deletions
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)
```
|
