Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

146
Vistas
How to secure my web widget embedded from third party website

I am creating web widget that can embed in other websites. Here is an example.

<script src="http://URL/searchWidget.js" type="text/javascript"></script>
<search-view name="search"></search-view>

I have some specific clients and only I am providing those widgets to those clients. So I need to secure those widgets from other third party websites. My Clients are using CMS, Joomla, Drupal.

If I give a widget(above script tag) to the client, only that client has access to that widget. If someone stolen that script, they cannot access that widget.

How can I do that ?
Is there any secure way to build widgets ?
can I do that using CMS plugin ?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Use this script in your javacsript to get current domain.

var scripts = document.getElementsByTagName("script");
SiteHostUrl = scripts[scripts.length-1].src;
jsUrl = SiteHostUrl;

Or you need give unique id for your client. You can access that ID and pass in ajax call verify the domain. if ID is not valid mean do not show your widget

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda