That was a general question. Thanks for clarifying.

On Thu, Apr 16, 2020 at 6:21 PM Bryan Davis <bd808@wikimedia.org> wrote:
On Thu, Apr 16, 2020 at 2:56 PM Huji Lee <huji.huji@gmail.com> wrote:
>
> Oops, I don't know how I pressed the Send button, sorry!
>
> When I run something like this from the console, I get a CORB error:
>
> $.ajax({url: 'https://whois.toolforge.org/whois/8.4.4.8/lookup/json'}).done(function(data){console.log(data)})
>
> Yet I know there are some tools on labs that are being referenced through JS.

The CORS error [0] would be related to the lack of a
"Access-Control-Allow-Origin: *" header in the response from the
Toolforge side. I don't see an access control header from either of
https://whois.toolforge.org/whois/8.4.4.8/lookup/json or
https://tools.wmflabs.org/whois/8.4.4.8/lookup/json.

Is this a regression you are seeing from using the tools.wmflabs.org
URL to access the tool or just a general question?


[0]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

Bryan
--
Bryan Davis              Technical Engagement      Wikimedia Foundation
Principal Software Engineer                               Boise, ID USA
[[m:User:BDavis_(WMF)]]                                      irc: bd808

_______________________________________________
Wikimedia Cloud Services mailing list
Cloud@lists.wikimedia.org (formerly labs-l@lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/cloud