change send_mail hostname
This commit is contained in:
@@ -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: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user