allow port in cors
This commit is contained in:
@@ -325,8 +325,11 @@ apxtri.runexpress = async (tribesdns, conf) => {
|
||||
const allowedOrigins = [
|
||||
'http://dev.smatchit.io:8081',
|
||||
];
|
||||
console.log('Allowed origins hardcoded:', allowedOrigins);
|
||||
console.log('CORS regex pattern:', regtxt);
|
||||
app.use(cors({
|
||||
origin: function (origin, callback) {
|
||||
console.log('CORS check - origin:', origin);
|
||||
if (!origin) {
|
||||
return callback(null, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user