chore: requestHeader 에 referer 추가

This commit is contained in:
yoosangwook 2025-04-23 15:29:04 +09:00
parent fe2123ae38
commit 891bb874ec
4 changed files with 16 additions and 3 deletions

View File

@ -26,6 +26,9 @@ public class InterfaceQsp {
@Value("${qsp.url}")
private String qspUrl;
@Value("${front.url}")
private String frontUrl;
/**
* API Call
*
@ -170,6 +173,7 @@ public class InterfaceQsp {
con.setReadTimeout(30000); // InputStream 읽어 오는 Timeout 시간 설정
con.setRequestMethod(httpMethod.toString());
con.setRequestProperty("Content-Type", "application/json");
con.setRequestProperty("Referer", frontUrl);
con.setDoInput(true);
con.setUseCaches(false);
con.setDefaultUseCaches(false);

View File

@ -59,3 +59,6 @@ file:
ini.root.path: /home/development/public/files/NewEstimate
ini.base.filename: 料金シミュレーション.ini
ini.drawing.img.path: /home/development/public/files/NewEstimate/Drawing
front:
url: http://1.248.227.176:3000

View File

@ -59,3 +59,6 @@ file:
ini.root.path: C:\\NewEstimate
ini.base.filename: 料金シミュレーション.ini
ini.drawing.img.path: C:\\NewEstimate\Drawing
front:
url: http://localhost:8080

View File

@ -59,3 +59,6 @@ file:
ini.root.path: /home/production/public/files/NewEstimate
ini.base.filename: 料金シミュレーション.ini
ini.drawing.img.path: /home/production/public/files/NewEstimate/Drawing
front:
url: https://hanasys.jp