FileUpload with Minio as S3 compatible solution

Regarding this section on docs "To correctly preview images and other files, FilePond requires files to be served from the same domain as the app, or the appropriate CORS headers need to be present. Ensure that the APP_URL environment variable is correct, or modify the filesystem driver to set the correct URL. If you're hosting files on a separate domain like S3, ensure that CORS headers are set up." Im trying to make my minio self hosted instance work with my laravel apps (while local or production). Im getting challenge to make things work. The minio server is on ipv4 not domain.
1 Reply
DrByte
DrByte15mo ago
As I posted in the other thread where you posted the same: CORS is something you configure on the server hosting the image assets, and in your CORS rules you specify which website domains are allowed to embed/display those images via something like an <img> tag. (Similar can be done for JS etc, but you're asking about images.) So, on whatever server you're uploading your images to with your app, you need to configure some CORS rules in that server's hosting config setup ... whether that's an Nginx server you control, or an S3 share service you use, etc.

Did you find this page helpful?