Ghost/core/server/web
Hannah Wolfe 0107ac848a Improved x-request-id handling
- Currently, we create a request ID for internal use if one isn't set & this is used in logs
- If a custom request ID is set via X-Request-ID header, this gets logged, however, we don't return this with the response
- Means that a custom ID gets lost on the way back out, and makes tracing requests through a system trickier
- This change ensures that if X-Request-ID is set on the request, it is also set on the response so that requests can be properly traced
- It's easy to set this in e.g. nginx so that the feature becomes available - Ghost doens't need to do this
- Note: also split request id handling out into new middleware
2019-09-22 18:23:45 +01:00
..
admin Migrated to use url-utils from Ghost-SDK (#10787) 2019-06-18 15:13:55 +02:00
api Updated members service to use magic-link signin 2019-09-05 11:14:50 +08:00
shared Improved x-request-id handling 2019-09-22 18:23:45 +01:00
site Updated members-ssr middleware to async functions 2019-09-17 11:05:06 +08:00
index.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
parent-app.js Improved x-request-id handling 2019-09-22 18:23:45 +01:00