'Server issue with iFrame on Apple device?

I'm trying to add iFrame to my Next.js app. It works well on Window, Android; however, on Apple devices, it shows server error: 500 Internal Server Error or Your sessions is not available on the server side anymore. As far as I have tested, this happens on:

  • Phone browsers (Safari, Chrome)
  • Mac Safari
  • Chrome on Mac is fine

Does anyone have a fix?

I can't copy on Browser Stack, so here is the screenshot. I guess the problem is that Apple block cookies. Anyway to bypass this? enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source