I have setup my uppy companion as a standalone server. I am trying to upload files from the drive. I am able to upload files when I run it on the local device but can’t do it on live server.
In the uppy dashboard, as companionUrl property I am passing the url as window.opener.
const uppy = new Uppy({
restrictions: { allowedFileTypes: ['image/jpeg', 'video/mp4', 'image/webp'], maxFileSize: 104857600 },
}).use(XHRUpload, {
endpoint: window.location.origin +'/api/media', //for companion to know where to send the file
formData: true,
headers: {companionisannoying: document.cookie},
}).use(GoogleDrive, {
companionUrl: window.location.origin + '/uppy-companion', //companion requires an absolute URL, not only the path
});
I am able to connect to the companion server but can’t signup using google account. i am getting a status code of 304 and an error message uncaught TypeError: Cannot read properties of null (reading 'postMessage')