|
@@ -614,10 +614,10 @@ You can tune the middleware behavior using middleware specific configuration par
|
614
|
614
|
- "firewall.reverseProxy": Set to "true" when a reverse proxy is used ("")
|
615
|
615
|
- "firewall.allowedIpAddresses": List of IP addresses that are allowed to connect ("")
|
616
|
616
|
- "cors.allowedOrigins": The origins allowed in the CORS headers ("*")
|
617
|
|
-- "cors.allowHeaders": The headers allowed in the CORS request ("Content-Type, X-XSRF-TOKEN")
|
|
617
|
+- "cors.allowHeaders": The headers allowed in the CORS request ("Content-Type, X-XSRF-TOKEN, X-Authorization, X-Debug-Info, X-Exception-Name, X-Exception-Message, X-Exception-File")
|
618
|
618
|
- "cors.allowMethods": The methods allowed in the CORS request ("OPTIONS, GET, PUT, POST, DELETE, PATCH")
|
619
|
619
|
- "cors.allowCredentials": To allow credentials in the CORS request ("true")
|
620
|
|
-- "cors.exposeHeaders": Whitelist headers that browsers are allowed to access ("")
|
|
620
|
+- "cors.exposeHeaders": Whitelist headers that browsers are allowed to access ("X-Debug-Info, X-Exception-Name, X-Exception-Message, X-Exception-File")
|
621
|
621
|
- "cors.maxAge": The time that the CORS grant is valid in seconds ("1728000")
|
622
|
622
|
- "xsrf.excludeMethods": The methods that do not require XSRF protection ("OPTIONS,GET")
|
623
|
623
|
- "xsrf.cookieName": The name of the XSRF protection cookie ("XSRF-TOKEN")
|
|
@@ -1334,9 +1334,11 @@ There is a `Dockerfile` in the repository that is used to build an image at:
|
1334
|
1334
|
|
1335
|
1335
|
[https://hub.docker.com/r/mevdschee/php-crud-api](https://hub.docker.com/r/mevdschee/php-crud-api)
|
1336
|
1336
|
|
|
1337
|
+It will be automatically build on every release. The "latest" tag points to the last release.
|
|
1338
|
+
|
1337
|
1339
|
### Docker compose
|
1338
|
1340
|
|
1339
|
|
-This repository also contains a `docker-compose.yml` file that can be installed/built/ran using:
|
|
1341
|
+This repository also contains a `docker-compose.yml` file that you can install/build/run using:
|
1340
|
1342
|
|
1341
|
1343
|
sudo apt install docker-compose
|
1342
|
1344
|
docker-compose build
|
|
@@ -1348,4 +1350,4 @@ Test the script (running in the container) by opening the following URL:
|
1348
|
1350
|
|
1349
|
1351
|
http://localhost:8080/records/posts/1
|
1350
|
1352
|
|
1351
|
|
-Enjoy!
|
|
1353
|
+Enjoy!
|