mercurjs / mercur

JavaScript Open Source
Multi-Vendor Marketplace Accelerator build on top of Medusa.js. Mercur simplifies the path to your own customized, multi-vendor marketplace.
https://mercurjs.com
MIT License
206 stars 23 forks source link

Can't register/login as vendor #25

Closed bscw21027 closed 1 month ago

bscw21027 commented 2 months ago

Hi,

I'm following the tutorial from youtube and ran yarn dev:vendor to open the vedor panel. Tried to register but it gets stuck and doesn't show the confirmation toast.

image

I'm running both admin and vendor simultaneously.

This is my .env file.

JWT_SECRET=something
COOKIE_SECRET=something

DATABASE_TYPE="postgres"
REDIS_URL='redis://localhost:6379'
STORE_CORS='http://localhost:3000,http://localhost:7001'
ADMIN_CORS='http://localhost:7001,http://localhost:7002'
DATABASE_URL='..'
MEDUSA_FF_SALES_CHANNELS='false'
Reuben09 commented 2 months ago

Please, I’m having this same issue, I also tried to register using postman and it says 404 meaning route not found, can anybody help with this please

Yprapashtica commented 2 months ago

Having the same issue here, can't add a new user from Postman, get a 404 error saying "Cannot POST /vendor/users" in the URL http://localhost:9000/vendor/users

githmin commented 2 months ago

Experiencing the same issue

turistua commented 2 months ago

I was able to resolve the cors issues by removing .env.local file, changing middlewares.ts:16 to middlewares: [cors(adminCors)], and putting ADMIN_CORS="http://localhost:7001,http://localhost:7002" at .env file

chrislicodes commented 2 months ago

Thank you @turistua, that worked.