diff --git a/docker/nginx-default.conf.template b/docker/nginx-default.conf.template index 0bd678c..f9b7ddc 100644 --- a/docker/nginx-default.conf.template +++ b/docker/nginx-default.conf.template @@ -9,7 +9,7 @@ server { set $CSP_STYLE "style-src 'self' 'unsafe-inline'"; set $CSP_FONT "font-src 'self' https:"; set $CSP_SCRIPT "script-src 'self' 'unsafe-eval' 'unsafe-inline' https:"; - set $CSP_CONNECT "connect-src 'self' blob: https: http://ip-api.com http://ip-api.com/json/"; + set $CSP_CONNECT "connect-src 'self' blob: https:"; set $CSP_MEDIA "media-src 'self' blob: https:"; set $CSP_OBJECT "object-src 'none'"; set $CSP_WORKER "worker-src blob:"; diff --git a/src/components/blocks/HubspotForm.vue b/src/components/blocks/HubspotForm.vue index fbb043a..2076135 100644 --- a/src/components/blocks/HubspotForm.vue +++ b/src/components/blocks/HubspotForm.vue @@ -268,13 +268,7 @@ export default { this.$v.$touch(); if (!this.$v.$invalid) { const hubspotUtk = Cookie.get('hubspotutk'); - - let ipAddress = null; - const ipResponse = await fetch('http://ip-api.com/json/'); - if (ipResponse) { - const ipData = await ipResponse.json(); - ipAddress = ipData.query; - } + const ipAddress = this.definition?.ip || null; const definition = this.computedFields; const fields = []; definition.forEach((def) => {