#muheeb_unexpected

1 messages ยท Page 1 of 1 (latest)

indigo jewelBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1263396442387648545

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

warm mauve
#

hello! I don't understand, are you saying that when integrating js.stripe.com, this is causing the attribute httponly to be false?

opal torrent
#

yes correct httponly is false when integrate js.stripe.com in my application you can see in screenshot i am adding i need mae it httponly with true how i can do it

indigo jewelBOT
golden dawn
#

Why do you need this attribute to be true?

opal torrent
#

as it required for the application we implemented because every request shoud be use only httponly not by other source

golden dawn
#

I am not 100% sure of internal workings, but these cookies might need to be accessed by Stripe.js, that's why this parameter is not set.

opal torrent
#

so there is any way or code snippet to change hhtponly with true for stripe.js

golden dawn
#

No, since Stripe.js won't be able to work correctly then

opal torrent
#

ok,so we can't change it right? by code or anyotherway?

golden dawn
#

No, unfortunately, it has to stay this way.

opal torrent
#

ok, thanks , i have one more question

golden dawn
#

Sure

opal torrent
#

there is _stripe_sid and _stripe_mid that is also having attribute httponly false what we can do it to disappear or making true flag by code or other way?

golden dawn
#

Hm, I am not sure how these are set on your own domain. Let me check...

opal torrent
#

ok please check

golden dawn
#

I see these cookies are set when you load the Payment Element.
There's no Stripe.js API or even JavaScript API that would allow you to modify the httponly attribute of cookies, unfortunately.
The only way I see it is you will need to make an exception in your app to support it.

opal torrent
golden dawn
opal torrent
#

nothing giving only screenshot integrated strip.js

golden dawn
opal torrent
#

we can make exception for it

#

can you suggest me code snippet for that exception please?

indigo jewelBOT
golden dawn
#

No, since I don't know what enforces this requirement in your application.

#

Normally, it shouldn't be a problem.

smoky flare
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

opal torrent
#

Hi tarzan..!

#

as disscussed with vanya saying that there is no API (stripe.js and JavaScript) to modify httponly attribute as mentioned shared screen, so what is the solution for that?

opal torrent
smoky flare
#

what are you trying to achieve?

opal torrent
#

at my domain there is stripe cookies that is httponly attribute with false is available here i want to achieve to make it httponly with true. how i can do it?

#

@smoky flare how i can achieve to set httponly attribute to true flag

#

??

smoky flare
#

you didn't answer my question

#

I need to understand what is the underlying ask and not just talk about implementation in order to be able to help you

opal torrent
#

there is no question regarding followup..!

smoky flare
#

not sure I understand what you mean by that

opal torrent
#

@tarzan are you availble to support me regarding my question of Stripe.js?

smoky flare
#

@opal torrent would you mind answering my question so I could help you?

opal torrent
#

yes tell me your question ?

smoky flare
#

what are you trying to achieve?

#

basically why do you need the httponly

opal torrent
#

i am not trying anything, but httponly is secure we are not able to acces by other source like Javascript or other so, that shloud be true for my domain where integrated Stripe

#

httponly=false means there is insecure cookie

#

my client is asking to make it secure

smoky flare
#

unfortunately that's not something you can achieve

#

httponly doesn't mean that a cookie is not secure

#

you have 2 different attributes Secure and Httponly

opal torrent
#

so if httponly=false means we can't acces stripe cookies..?

smoky flare
#

and yes httponly means that the cookie is accessible on the frontend

#

but that doesn't mean the cookie isn't secure

opal torrent
#

you mean to say its secure right ? whether it is httponly =true or false we consider Secure attribute if that is Strict or Lax?

smoky flare
#
MDN Web Docs

A cookie (also known as a web cookie or browser cookie) is a small piece of data a server sends to a user's web browser. The browser may store cookies, create new cookies, modify existing ones, and send them back to the same server with later requests. Cookies enable web applications to store limited amounts of data and remember state informatio...

#

you're right that it's better to have httponly

#

but by design we have some cookies that need to be accessible by javascript

#

so that's why we don't use httponly

opal torrent
#

ok thank you.

#

so, for me there is no any criteria to make it httponly with true of Stripe Cookies?

smoky flare
#

no sorry

indigo jewelBOT