Dynamic Origin with S3 for SPA

Single Page Applications have revolutionized the way we develop web applications, but they come with some challenges that we didn’t have with traditional server-side rendered pages, for example, the way our pages are indexed in search engines like Google or Bing.
But somethings things doesn’t work as we expect.