Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

145
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda