Text break variable

Answered

Hi,

I have a text (a cookie) that I wish to use in an API call header, but whatever I do, this code break the variable it's in or doesn't show up in my API call headers.

Here's the text / cookies:

CookieScriptConsent={'firstpage':'https://bubble.io/','action':'accept','categories':'[ 'performance ', 'targeting ', 'functionality ']','key':'3af23c70-ce02-466a-9b20-488f402ea6a8'}; _ga=GA1.2.1226421057.1628063595; _scid=0880b4ca-7f4d-4a62-9647-1e786abd5b48; ajs_anonymous_id=02865954-a32c-4e3a-8a47-a0febb8efc38; meta_live_u2main=1663494902527x968919491196176300; meta_live_u2main.sig=TFVuKw0N74OXjmhJE9HHUnICnP8; ajs_user_id=1608206332804x279788143796156030; _gcl_au=1.1.1242875711.1663494910; __stripe_mid=a7d68e94-6118-4e4e-b387-3adea638394bc4a998; showed_privacy_warning_carnets-de-voyage=true; showed_privacy_warning_weswas=true; showed_privacy_warning_ottho-app2=true;


Here's what it does :


Any hint?

3 replies