F
Filament8mo 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
EMMANOP8mo ago
up
Dennis Koch
Dennis Koch8mo ago
What's your APP_URL and do you have an ASSET_URL in .env?
EMMAN
EMMANOP8mo ago
yes sir. ASSET_URL="${APP_URL}"
Dennis Koch
Dennis Koch8mo ago
Can you please answer all questions?! 😅
EMMAN
EMMANOP8mo ago
nevermind sir. i found the solution on stackoverflow. i just need to add the 'URL::forceScheme('https');'
Dennis Koch
Dennis Koch8mo ago
Does your app url include https?
EMMAN
EMMANOP8mo ago
yes sir.
Dennis Koch
Dennis Koch8mo ago
Alright, then forceScheme is the best solutions
EMMAN
EMMANOP8mo ago
yes sir.

Did you find this page helpful?