I need to serve static content (mostly images) to logged users, but those images cannot be public.
There is basic JWT authorization for clients. Those clients have images, but those images must be private (Only user who owns them can access them).
My images are provided by my second Node.js server what works like CDN (Caching, no headers, etc...)
I was thinking about sending my JWT in URL like this: http://static.example.com/image.jpg?token=jwtjwtjwtkwtjwt, but my JWT is long and it is not secure, because if user share URL to image he also sharing his JWT.