'allowed_origins' => ['http://localhost:5173'], Try Changing To 'allowed_origins' => ['http://127.0.0.1:5173']. If your trying to Access The Uploaded Versions On the Server I dont Think Your Allowed origins Should be to Localhost.