change send_mail hostname
This commit is contained in:
@@ -17,12 +17,12 @@ const DiscussSection = () => {
|
||||
axios.create({
|
||||
headers: {
|
||||
'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'
|
||||
}
|
||||
})
|
||||
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') {
|
||||
setConsult({
|
||||
fio: '',
|
||||
|
||||
Reference in New Issue
Block a user