posthog config
This commit is contained in:
parent
ad2f0d2ce4
commit
c204168b24
@ -28,6 +28,25 @@ async function bootstrap() {
|
|||||||
|
|
||||||
app.use(
|
app.use(
|
||||||
helmet({
|
helmet({
|
||||||
|
contentSecurityPolicy: {
|
||||||
|
directives: {
|
||||||
|
defaultSrc: ["'self'"],
|
||||||
|
scriptSrc: [
|
||||||
|
"'self'",
|
||||||
|
"'unsafe-inline'",
|
||||||
|
"'unsafe-eval'",
|
||||||
|
"https://eu-assets.i.posthog.com",
|
||||||
|
],
|
||||||
|
connectSrc: [
|
||||||
|
"'self'",
|
||||||
|
"https://eu.posthog.com",
|
||||||
|
"https://eu-assets.i.posthog.com",
|
||||||
|
],
|
||||||
|
imgSrc: ["'self'", "data:", "https:"],
|
||||||
|
styleSrc: ["'self'", "'unsafe-inline'"],
|
||||||
|
fontSrc: ["'self'", "data:", "https:"],
|
||||||
|
},
|
||||||
|
},
|
||||||
crossOriginResourcePolicy: {
|
crossOriginResourcePolicy: {
|
||||||
policy: "cross-origin",
|
policy: "cross-origin",
|
||||||
},
|
},
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import axios from "axios";
|
|||||||
|
|
||||||
const API_URL = "https://imkapi.oblak.solutions:3000";
|
const API_URL = "https://imkapi.oblak.solutions:3000";
|
||||||
const api = axios.create({
|
const api = axios.create({
|
||||||
baseURL: API_URL,
|
baseURL: "https://imkapi.oblak.solutions",
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
headers: {
|
headers: {
|
||||||
Accept: "application/json, text/plain, */*",
|
Accept: "application/json, text/plain, */*",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user