@@ -1,3 +1,5 @@
|
||||
import { apiBaseUrl } from '../app.config.js';
|
||||
|
||||
export function getAuthKeyFromProperties(props) {
|
||||
var authKey;
|
||||
|
||||
@@ -27,9 +29,7 @@ export function getTenantProperty(key, props) {
|
||||
var authKey = getAuthKeyFromProperties(props);
|
||||
console.log(`Fetching TPS Property [${key}]`);
|
||||
fetch(
|
||||
`${
|
||||
import.meta.env.VITE_EO_SERVICES_URL
|
||||
}/api/tps?propertyName=${key}&authKey=${authKey}`,
|
||||
`${apiBaseUrl}/tps?propertyName=${key}&authKey=${authKey}`,
|
||||
{
|
||||
credentials: "include", // fetch won't send cookies unless you set credentials
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user