Mixed Content: The page at 'https://api.xyz.com/api/documentation' was loaded over HTTPS,
but requested an insecure stylesheet 'http://api.xyz.com/swagger-ui-assets/swagger-ui.css?v=26ec363936a21921c9fec290e551e3eb'.
This request has been blocked; the content must be served over HTTPS.
I know how to solve this problem in Laravel but unable to solve this in case of Lumen.
Tried Solutions:
Added below line in AppServiceProvider
URL::forceSchema('https');
Check the
APP_URLin the .env file which is set tohttp://localhostHeroku uses
https://appname.herokuapp.comsince it's in production but lumen useshttp://localhostfor dev mode so I fixed it by runningheroku config:set APP_URL=https://localhost