# more cross-origin problems recently?

**URL:** <https://talk.observablehq.com/t/more-cross-origin-problems-recently/4684>\
**Category:** Feedback\
**Created:** [February 21, 2021, 1:17am UTC](https://talk.observablehq.com/t/more-cross-origin-problems-recently/4684 "2021-02-21T01:17:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrus](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jrus/32/586_2.png) [@jrus](https://talk.observablehq.com/u/jrus)\
**Post date:** [February 21, 2021, 1:17am UTC](https://talk.observablehq.com/t/more-cross-origin-problems-recently/4684/1 "2021-02-21T01:17:14Z")

</div>

I feel like I have been running into more transient cross-origin failures in Safari than I used to, when one notebook imports from another (e.g. when a notebook tries to import the new ‘inputs’ notebook). After reloading pages a few times, these go away, but it is still kind of frustrating, and I imagine provides an especially confusing/frustrating experience for new visitors who will just think the page is broken.

Here is a screengrab from my browser console. The bottom failure (“Failed to load resource …”) is actually the only one that seems to be breaking anything here.

 ![Screen Shot 2021-02-20 at 5.11.26 PM](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/e/e12acf3cd783924a6ac3ac0dfe15794989319531.png)

Edit: here’s the network tab when it fails:

 ![Screen Shot 2021-02-20 at 8.02.02 PM](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/0/0691e98c5932cd0a4cc516d75fc4b85ace2e1cd1.jpeg)

Or when it works:

 ![Screen Shot 2021-02-20 at 8.03.59 PM](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/2/2cda0a4bbe5e7a34ba37931d1696a8040bdfe771.jpeg)

---

<div class="post-metadata">

**Author:** ![jrus](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jrus/32/586_2.png) [@jrus](https://talk.observablehq.com/u/jrus)\
**Post date:** [March 2, 2021, 12:48am UTC](https://talk.observablehq.com/t/more-cross-origin-problems-recently/4684/2 "2021-03-02T00:48:36Z")

</div>

Hm, I got the same behavior in Firefox, and it turns out to be due to some kind of rate limiting

 ![Screen Shot 2021-03-01 at 4.41.25 PM](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/f/fcbd61f8168fefc43321cfa51076553d50e4de25.jpeg)

Apparently the 429 response doesn’t have the cross-origin headers that the page is expecting.

Is this rate limiting based on some behavior I am doing? (e.g. the site might be mad that I subscribed to ~200 Observable authors’ RSS feeds, and my feed reader periodically polls all of them.)

Or is it too many requests from around the web for the same resource? Or …?

I don’t ever get a rate limiting error page for the basic content of notebooks, only for other notebooks that they try to import.

It seems like the more popular of these javascript files from imported notebooks should be cached by the browser, so they don’t have to be reloaded for every new notebook.

---

<div class="post-metadata">

**Author:** ![visnup](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/visnup/32/305_2.png) [@visnup](https://talk.observablehq.com/u/visnup)\
**Post date:** [March 2, 2021, 2:57am UTC](https://talk.observablehq.com/t/more-cross-origin-problems-recently/4684/3 "2021-03-02T02:57:09Z")

</div>

There is a JS challenge that happens via Cloudflare at 120 req/min, across all paths. There are a few different ones around searches and logins too. If it’s this one you’re tripping, if you make another browser request by just refreshing the page I believe Cloudflare will inject a JS page to check you’re a real browser then continue and you _should_ be clear afterwards?

---

<div class="post-metadata">

**Author:** ![jrus](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jrus/32/586_2.png) [@jrus](https://talk.observablehq.com/u/jrus)\
**Post date:** [March 2, 2021, 3:12am UTC](https://talk.observablehq.com/t/more-cross-origin-problems-recently/4684/4 "2021-03-02T03:12:20Z")

</div>

Sometimes it takes several refreshes to fix, and maybe waiting a couple minutes? It’s hard to judge exactly what the criteria are.

* * *

It might be helpful if the error messages on the notebook page more clearly indicated what the issue was.
