mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
parent
9ed49719f7
commit
fe229e4f50
2 changed files with 3 additions and 2 deletions
|
|
@ -23,5 +23,5 @@ uppy.use(Dashboard, {
|
|||
plugins: ['GoogleDrive', 'Webcam'],
|
||||
})
|
||||
uppy.use(AwsS3, {
|
||||
companionUrl: 'http://localhost:3020',
|
||||
endpoint: 'http://localhost:3020',
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue