Fix Contact Form - Use mailcow network Postfix server successfully
This commit is contained in:
@@ -76,7 +76,9 @@ if (contactSubmitBtn) {
|
||||
|
||||
try {
|
||||
// Python FastAPI 엔드포인트로 요청
|
||||
const response = await fetch('http://localhost:8001/api/contact', {
|
||||
// 현재 페이지의 호스트를 사용
|
||||
const apiUrl = `${window.location.protocol}//${window.location.hostname}:8001/api/contact`;
|
||||
const response = await fetch(apiUrl, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
||||
Reference in New Issue
Block a user