Setting cookie in iframe that is in different domain

To set a cookie in an iframe that is in a different domain than the parent site, you can use SameSite=None. These are called third- party cookies.

Here is a site where you can test this .

This works on:

  • Chrome (normal)
  • Firefox (normal and incognito)
  • Edge (normal and incognito)
  • Safari (incognito apparently)

This does not work on:

  • Chrome (incognito)
  • Safari (normal)

This is due to the blockage of third party cookies

This is toggle on Chrome incognito that if it’s disabled, the cookies will work.

For other settings on how to disable this, you can go here

Webkit also announced that third-party cookies are disabled by default from 24th of March 2020 and this will roll out eventually on every browser that uses webkit.

I also expect this to be reflected by other browsers in the near future.

If you think you can use localStorage , think again. That is also blocked when third-party cookies are blocked.

This is great news for security but what about the sites that still need this to work properly? What should iframes use to remember data when they are embedded in other domains? A friend of mine said that iframe are becoming deprecated and embedded widgets are the future.

What do you think?

Working from home vs. from the office

I can’t believe it’s been almost a year since I started working from home.

Let me draw a picture for you so that you can understand my situation.

I’m married, I have two small children (5 and 3) and I live in a two bedroom apartment.

The main reason why I wanted to work from home was to spend more time with my family. I was at the office 9 hours a day, with a minimum of 2 hours commute (in total). I was not spending enough time with my children and I felt that I was investing a lot more in work than in my children.

Another reason was that we, as a family, wanted the possibility to move where we wanted and maybe, in the future, to travel while working.

Here are my lists after 7+ years of working in Bucharest in offices and ~1 year of working from home.

Working from home


  • More time in general
  • Schedule flexibility
  • Spending more time with my family
  • You can move wherever you like
  • Not being tired all the time
  • Wanting to visit and travel more because I have more energy


  • Lack of social situations (but that can be arranged by going out with friends and at church, in my case)
  • No real separation between work and home
  • You have to “hunt” for silence if you have two kids (by working late/early)

Working in an office


  • Easier to learn/teach from/to people in person
  • Socializing everyday
  • Company events


  • Less time for family
  • Commute
  • Less flexibility (working in a range of hours, 1-2 days work from home, if you’re lucky)

If you have any pros and cos about these, feel free to share in the comments bellow.

If you’re interested in working from home, at OakBits we are always looking for people we can click with. For more info, you can reach me at

Patience – this generation’s rarest resource

We start our life depending on others. We pretend to be adults in our playing. We pretend we are married, that we have children. We can’t wait for this to be real.

Then we start going to school. We observe that there are a lot of things to be learned and it seems that even if we do our best, there is still a lot to learn. We can’t wait to know it all.

In the meantime, we start to fantasize about being with somebody way to early for our age. Time goes by and more and more of our energy goes towards finding someone suitable for us. We can’t wait to find that special someone.

Then we find that special someone and we are thrilled. For a second.

We get married and we have children. The childhood “pretend” becomes real. They are lovely, especially when they’re sleeping. But then they start with demands, with their own opinions and wants. We try to educate them, to teach them what is right, to make them understand. We can’t wait for them to understand.

Meanwhile, the needs of the family grow bigger and bigger, so we have to keep up with our career. We read, we watch tutorials, we try different projects. We can’t wait to be experts in our field.

This is our life now. We struggle everyday to become better, to earn more, to reach the next step, to teach our kids the values in life and for a small second of two weeks a year, we take a vacation from it all and we breathe.

Is this our life now? Why don’t we have patience with our spouse, our children, our coworkers, with ourselves? Why are we in such a hurry to be the next “me”, when we didn’t enjoy our current self? Time is limited and it’s going fast.

Are you at the beginning of your career? Enjoy the learning and don’t stress about it.

Are you at the beginning at your family? Enjoy the present things now, because they will never be the same again.

It’s not a race, it’s a journey.

Dieter F. Uchtdorf

You know the quote, it has become a cliché. We like to say it, but we don’t like to make it our own.

We don’t become patient until tragedy strikes. Then, nothing else matters than to be with our loved ones, to be near friends and family that we love. To hold our spouse, to kiss our children, to hug our friends.

Please, for the love of God, don’t wait for tragedy.

Have patience now!