This commit is contained in:
Warunee Tamkoo 2025-09-12 11:01:19 +07:00
parent 9846c786a0
commit 64d99a10e5

2
sso.js
View file

@ -26,7 +26,7 @@ const urlKeycloakToken = `${process.env.KC_URL}/realms/${process.env.KC_REALMS}/
const app = express();
// ตั้งค่าการป้องกัน Origin
const allowedOrigins = ['https://hrms.bangkok.go.th', 'https://hrms.chin.in.th']; // อนุญาตเฉพาะ domain ที่กำหนด //http://localhost:3002
const allowedOrigins = ['https://hrms.bangkok.go.th', 'https://hrms.chin.in.th', 'https://hrmsbkk.case-collection.com', 'http://localhost:3002']; // อนุญาตเฉพาะ domain ที่กำหนด //http://localhost:3002
app.use(cors({
// origin: function (origin, callback) {