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

136
Vistas
Transfer content from one tab to another without browser extension possible?

I have a Chrome browser tab with a textarea filled with some ASCII content. I want to open a new tab, load a special URL, where is a HTML document with an empty textarea, and transfer content from the textarea in the first tab to the textarea in the second, newly opened tab.

My question: Is it possible without a browser extension?

Edit: all data are placed in the same domain and server, both are mine, like this:

  • First tab is located under https://tab1.my.domain.com
  • Second tab is located under https://tab2.my.domain.com

phpinfo: enter image description here

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

0

So for PHP you both need to make your settings wildcards (or w\e permissions you want) Vs standard init sessions (applies to cookies too) to allow domains to access other subdomains cookies.

session_set_cookie_params(0, '/', '.domain.com', true);
session_start();

Also for any JS ajax request you'll need to enable xhr credentials / cross domain.

            $.ajax({
                type: method,
                url:  url,
                data: request,
                contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                traditional: true,
                crossDomain: true,
                xhrFields: {
                    withCredentials: true
                },
                success: function (data) {
                    ...
                },
                error: function (xhr, status, thrown) {
                    ...
                }
            }); 

Neither PHP or JS natively "like" CORS requests these days, even from the same subdomains. They have to be explicitly enabled.

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