hey <@!498057949541826571>! so, I have the follow...
# support-questions-legacy
a
hey @User! so, I have the following config for the frontend SDK:
Copy code
appInfo: {
    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:
Copy code
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 🤔