F
Filament12mo ago
Lodret

file not retrive in edit filesystem sftp

I create the blog cms but file to upload in seperate server. i can saved data to server upload, but can't read the data from upload server. but in network i show OK 200 when retrive. any solution from that? thanks in advance from anyone who reply my report. UPDATE: The root issue is CORS SOLVED: Set The Access-Control-Origin From server-upload in my case the server to store file using laravel, then i set in .htaccess in folder /public
<If "%{REQUEST_URI} =~ m#^/(folder-where-got-cors-errors|others-folder-where-got-cors-errors)/[^/]#">
Header set Access-Control-Allow-Origin: *
</If>
<If "%{REQUEST_URI} =~ m#^/(folder-where-got-cors-errors|others-folder-where-got-cors-errors)/[^/]#">
Header set Access-Control-Allow-Origin: *
</If>
No description
8 Replies
Dennis Koch
Dennis Koch12mo ago
What’s the error?
Lodret
LodretOP12mo ago
nothing in response
No description
Dennis Koch
Dennis Koch12mo ago
But the files are highlighted red. Can you share the whole row without the details pane opened? Did you check console errors?
Lodret
LodretOP12mo ago
this the console error
No description
Dennis Koch
Dennis Koch12mo ago
Yeah, just saw that your added "the issue is CORS" to the initial question So the issue is clear.
Lodret
LodretOP12mo ago
but then any suggestion how to fix the CORS? btw the server upload is using the laravel also
Dennis Koch
Dennis Koch12mo ago
You need to set the right headers. Either on the server or your Laravel instance (if it serves the photos)
Lodret
LodretOP12mo ago
alright dennis thank you for the reply, i'll deep search about the cors, and then i put the solution when is solved
Want results from more Discord servers?
Add your server