change send_mail hostname

This commit is contained in:
2026-03-27 17:29:55 +09:00
parent 1feb1a40be
commit 258af13832

View File

@@ -17,12 +17,12 @@ const DiscussSection = () => {
axios.create({ axios.create({
headers: { headers: {
'Access-Control-Allow-Headers': 'Content-Type', 'Access-Control-Allow-Headers': 'Content-Type',
'Access-Control-Allow-Origin': 'http://localhost:5173', 'Access-Control-Allow-Origin': 'http://commit-it.ru:5173',
'Content-Type': 'application/json' 'Content-Type': 'application/json'
} }
}) })
if (consult.conf) { if (consult.conf) {
axios.post('http://localhost:3000/send_mail', consult).then(res => { axios.post('http://commit-it.ru:3000/send_mail', consult).then(res => {
if (res.data == 'OK') { if (res.data == 'OK') {
setConsult({ setConsult({
fio: '', fio: '',