F
Filament6mo 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 Koch6mo ago
What’s the error?
Lodret
Lodret6mo ago
nothing in response
No description
Dennis Koch
Dennis Koch6mo ago
But the files are highlighted red. Can you share the whole row without the details pane opened? Did you check console errors?
Lodret
Lodret6mo ago
this the console error
No description
Dennis Koch
Dennis Koch6mo ago
Yeah, just saw that your added "the issue is CORS" to the initial question So the issue is clear.
Lodret
Lodret6mo ago
but then any suggestion how to fix the CORS? btw the server upload is using the laravel also
Dennis Koch
Dennis Koch6mo ago
You need to set the right headers. Either on the server or your Laravel instance (if it serves the photos)
Lodret
Lodret6mo ago
alright dennis thank you for the reply, i'll deep search about the cors, and then i put the solution when is solved