Configure CORS Policy for Your S3 Bucket Follow these steps:
Go to your AWS S3 bucket in the AWS Management Console.
Navigate to the Permissions tab.
Scroll down to the Cross-origin resource sharing (CORS) section.
Add the following CORS configuration:
[ { "AllowedHeaders": [""], "AllowedMethods": ["GET", "HEAD"], "AllowedOrigins": [""], "ExposeHeaders": ["ETag"], "MaxAgeSeconds": 3000 } ]
After this recheck the vite.config.js for Base URL
base: process.env.ASSET_URL || '/',
also clear config cache php artisan config:clear