Skip to content

Commit fe229e4

Browse files
authored
update @examples/aws-companion (#6168)
minor config changes
1 parent 9ed4971 commit fe229e4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/aws-companion/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ uppy.use(Dashboard, {
2323
plugins: ['GoogleDrive', 'Webcam'],
2424
})
2525
uppy.use(AwsS3, {
26-
companionUrl: 'http://localhost:3020',
26+
endpoint: 'http://localhost:3020',
2727
})

examples/aws-companion/server.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const DATA_DIR = path.join(__dirname, 'tmp')
1010

1111
app.use(
1212
require('cors')({
13-
origin: 'http://localhost:3000',
13+
origin: 'http://localhost:5173',
1414
methods: ['GET', 'POST', 'OPTIONS'],
1515
credentials: true,
1616
}),
@@ -45,6 +45,7 @@ const options = {
4545
filePath: DATA_DIR,
4646
secret: 'blah blah',
4747
debug: true,
48+
corsOrigin: true,
4849
}
4950

5051
// Create the data directory here for the sake of the example.

0 commit comments

Comments
 (0)