Got issues of CORS due to https and http call

I setup https for localhost as https ://hrm.dev.localhost , but see the javascripts are load with http:// then it causes CORS error as seen in the picture. This is Laravel 11, with Filament 3. Why it won't call with https, and how solve this issue. #cors, #https #table.js
No description
Solution:
Can also try setting ASSET_URL too.
Jump to solution
6 Replies
awcodes
awcodes3mo ago
Make sure you’re APP_URL in .env is also set to https
zenepay
zenepay3mo ago
It is set.
Solution
awcodes
awcodes3mo ago
Can also try setting ASSET_URL too.
zenepay
zenepay3mo ago
Great it works. Thank you.
No description
awcodes
awcodes3mo ago
If that doesn’t work then you can try forcing it in a service provider. `URL::ForceSchema(‘https’)
zenepay
zenepay3mo ago
Interesting, last project with L10, I don't need to set ASSET_URL to https it works well, but L11, I got issue.