From fe229e4f50903f8d1007f37f89316ff7ac34120f Mon Sep 17 00:00:00 2001 From: Prakash Date: Wed, 4 Feb 2026 18:43:37 +0530 Subject: [PATCH] update @examples/aws-companion (#6168) minor config changes --- examples/aws-companion/main.js | 2 +- examples/aws-companion/server.cjs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/aws-companion/main.js b/examples/aws-companion/main.js index 29cbaea58..7c1dd7f43 100644 --- a/examples/aws-companion/main.js +++ b/examples/aws-companion/main.js @@ -23,5 +23,5 @@ uppy.use(Dashboard, { plugins: ['GoogleDrive', 'Webcam'], }) uppy.use(AwsS3, { - companionUrl: 'http://localhost:3020', + endpoint: 'http://localhost:3020', }) diff --git a/examples/aws-companion/server.cjs b/examples/aws-companion/server.cjs index 010d7e644..5704a7b3e 100644 --- a/examples/aws-companion/server.cjs +++ b/examples/aws-companion/server.cjs @@ -10,7 +10,7 @@ const DATA_DIR = path.join(__dirname, 'tmp') app.use( require('cors')({ - origin: 'http://localhost:3000', + origin: 'http://localhost:5173', methods: ['GET', 'POST', 'OPTIONS'], credentials: true, }), @@ -45,6 +45,7 @@ const options = { filePath: DATA_DIR, secret: 'blah blah', debug: true, + corsOrigin: true, } // Create the data directory here for the sake of the example.