I try run nuxt-chat-app and nuxt-chat-server then i get this error from client.
Please help me.
server i get this response
{ "res": { "statusCode": 200, "body": "POST" }, "req": { "url": "/api/auth/login", "headers": { "host": "localhost:3002", "connection": "keep-alive", "sec-fetch-mode": "cors", "access-control-request-method": "POST", "origin": "http://localhost:3000", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", "access-control-request-headers": "content-type", "accept": "*/*", "sec-fetch-site": "same-site", "referer": "http://localhost:3000/login", "accept-encoding": "gzip, deflate, br", "accept-language": "vi-VN,vi;q=0.9,ja;q=0.8,en;q=0.7" }, "method": "OPTIONS", "httpVersion": "1.1", "originalUrl": "/api/auth/login", "query": {} }, "responseTime": 1, "level": "info", "message": "HTTP OPTIONS /api/auth/login 200 1ms" } OPTIONS /api/auth/login 200 0.444 ms - 4