F
Filamentβ€’4w ago
EMMAN

Problem In Deployment - request has been blocked

Good day. I'm trying to deploy on Cloudflare but, the page gets bank and the console gets this message: This request has been blocked; the content must be served over HTTPS. I tried to deploy using Laravel Open-Admin, and its working, but on Filament, Its not working.
No description
9 Replies
EMMAN
EMMANβ€’4w ago
up
Dennis Koch
Dennis Kochβ€’4w ago
What's your APP_URL and do you have an ASSET_URL in .env?
EMMAN
EMMANβ€’4w ago
yes sir. ASSET_URL="${APP_URL}"
Dennis Koch
Dennis Kochβ€’4w ago
Can you please answer all questions?! πŸ˜…
EMMAN
EMMANβ€’4w ago
nevermind sir. i found the solution on stackoverflow. i just need to add the 'URL::forceScheme('https');'
Dennis Koch
Dennis Kochβ€’4w ago
Does your app url include https?
EMMAN
EMMANβ€’4w ago
yes sir.
Dennis Koch
Dennis Kochβ€’4w ago
Alright, then forceScheme is the best solutions
EMMAN
EMMANβ€’4w ago
yes sir.