Closed klyburke closed 3 years ago
@klyburke Image upload works on YourSettings
page, meaning it is not S3 problem and not cors
Express middleware problem, must be problem in Post-related code. I will report here when I find out.
@klyburke Pushed fix https://github.com/async-labs/saas/commit/83fa735034672ddabff46875c358d7c06106ac5c https://github.com/async-labs/saas/commit/f4c89cb6f0b676b79f659dd19142e0fde1b78ac2
One of env var was not available on the browser. Let's keep it open until I make fix in the book's content.
@klyburke Solved.
I confirm that image upload in a Post is working now. Thanks!
@tima101 Noting to ourselves that in the current demo app, a user is unable to add an image to a Post due to a CORS problem.
Access to fetch at 'https://saas-api.builderbook.org/api/v1/team-member/aws/get-signed-request-for-upload-to-s3' from origin 'https://saas-app.builderbook.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Click to see Hill for issue #135
created by Async