anton0519
04/25/2021, 10:17 AMappInfo: {
appName: "WorkoutApp",
apiDomain: "https://blah-blah.execute-api.blah-blah.amazonaws.com",
apiBasePath: "/dev/auth",
websiteDomain: "https://blah-blah.execute-api.blah-blah.amazonaws.com/dev/auth",
},
but then on SignUp I get a CORS-related error:
Access to fetch at 'https://blah-blah.execute-api.blah-blah.amazonaws.com/dev/auth/signup/email/exists?email=qwwqwq%40hahah.com' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: 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.
I think earlier you mentioned that apiDomain
and websiteDomain
have to be the same 🤔