@echoteam/signoz-react 1.0.7-beta.0 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +6 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -15281,14 +15281,19 @@ function validateConfig(config) {
|
|
|
15281
15281
|
}
|
|
15282
15282
|
// Fungsi untuk mengkonversi string allowed origins ke array
|
|
15283
15283
|
function parseAllowedOrigins(originsStr) {
|
|
15284
|
+
// Jika tidak ada origins yang diset, izinkan semua URL
|
|
15284
15285
|
if (!originsStr)
|
|
15285
|
-
return [
|
|
15286
|
+
return ['*'];
|
|
15286
15287
|
return originsStr.split(',').map(origin => {
|
|
15287
15288
|
origin = origin.trim();
|
|
15288
15289
|
// Jika string dimulai dan diakhiri dengan '/', anggap sebagai RegExp
|
|
15289
15290
|
if (origin.startsWith('/') && origin.endsWith('/')) {
|
|
15290
15291
|
return new RegExp(origin.slice(1, -1));
|
|
15291
15292
|
}
|
|
15293
|
+
// Jika origin adalah '*', itu berarti allow all
|
|
15294
|
+
if (origin === '*') {
|
|
15295
|
+
return '.*';
|
|
15296
|
+
}
|
|
15292
15297
|
return origin;
|
|
15293
15298
|
});
|
|
15294
15299
|
}
|