It really depend on how Cloudflare is sending the forward headers. Are you able to inspect the request headers from Cloudflare?
The forward middleware should solve it properly if the headers are "standard".
Have you also properly used the OnAcceptProxy to accept the CloudFlare proxy?
Finally, you can always use OnGetAbsoluteUrl event to go the brute force and change the URL manually (add the https): Swagger API service problem when using HTTPS URL - XData SwaggerUI - XDataServerModule - #16 by wlandgraf
1 Like