diff options
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)
```
|
