Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
Establecer la cookie de Cloudflare según el parámetro GET

Estoy intentando configurar la cookie de cloudflare en función del parámetro GET. En este escenario, el parámetro GET es utm_source. URL de demostración (el trabajador está activo actualmente): https://ellasbubbles.com/product/cultured-marble-trench-drain-shower-base-36x60-and-30x60/?utm_source=test

Pude comenzar con esta documentación, pero parece que no puedo hacer que esto funcione correctamente. Estoy usando el elemento de inspección en Chrome para buscar una cookie y no se encuentra: https://www.mikestreety.co.uk/blog/using-cloudflare-workers-to-set-a-cookie-based-on-a- obtener-parámetro-o-ruta/

 addEventListener('fetch', event => { event.respondWith(fetchAndApply(event.request)) }) async function fetchAndApply(request) { let response = await fetch(request); let url = new URL(request.url), refer = url.searchParams.get('utm_source'); response = new Response(response.body, response); if(refer) { let partnerCookie = `source=${refer}; path=/; domain=https://ellasbubbles.com; secure; HttpOnly; SameSite=None`; response.headers.set('Set-Cookie', partnerCookie); } return response; }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!