You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have to set secure & http_only cookie from BE for master domain - website.com where those cookies will be also used by subdomains - sub1.website.com, sub2.website.com etc ...
I've tried with cookies, headers['Set-Cookie] but nothing works as expected. Is there any other way to do it via GrapeAPI ?
Any help would be appreciate.
Thanks
The text was updated successfully, but these errors were encountered:
Can you please define "nothing works as expected". What are you seeing in terms of set-cookie line(s) emitted from the API and what do you expect to see?
@dblock Hi, seems that it was kind of wrongly configured. I'm still not sure why, but as we're dealing with subdomains, FE app had to include withCredentials: true or cookies wont be included in request. That's weird but that's how it is.
Anyway it works as expected now.
I have another question here, is there any way to Rspec cookies which are set from Grape endpoint. I see in gem there is no specs, so maybe you have any hint or so ?
Hi,
I have to set secure & http_only cookie from BE for master domain -
website.com
where those cookies will be also used by subdomains -sub1.website.com
,sub2.website.com
etc ...I've tried with
cookies
,headers['Set-Cookie]
but nothing works as expected. Is there any other way to do it via GrapeAPI ?Any help would be appreciate.
Thanks
The text was updated successfully, but these errors were encountered: