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
awcodes8mo ago
Make sure you’re APP_URL in .env is also set to https
Zen Nitiruj
Zen NitirujOP8mo ago
It is set.
Solution
awcodes
awcodes8mo ago
Can also try setting ASSET_URL too.
Zen Nitiruj
Zen NitirujOP8mo ago
Great it works. Thank you.
No description
awcodes
awcodes8mo ago
If that doesn’t work then you can try forcing it in a service provider. `URL::ForceSchema(‘https’)
Zen Nitiruj
Zen NitirujOP8mo ago
Interesting, last project with L10, I don't need to set ASSET_URL to https it works well, but L11, I got issue.
Want results from more Discord servers?
Add your server