Categories
News

Mozilla new HTTP Observatory

The Mozilla Observatory is a well-known web tool that verifies your website’s security baseline. Achieving a high score is a good indicator of your website’s security awareness.

It’s also a highly visible and effective indicator for website visitors. Having a high score is, therefore, not only a good practice but also an advertisement for your competency.

Mozilla had been running the Observatory Mozilla.org free of charge for its users for many years.

https://observatory.mozilla.org/ (2024-07-23 17:52)

Now the old Observatory is being sunset, and a new HTTP Observatory is seeing the light of day.

https://developer.mozilla.org/en-US/observatory/analyze?host=web-performance.ch (2024-07-23 17:58)

I highly recommend that everyone use and review your website’s scorecards

API

New reduced API

The revised v2 API is now accessible at a new URL: https://observatory-api.mdn.mozilla.net/api/v2/scan. The response from the API has been streamlined for better clarity. For instance, making a POST request to https://observatory-api.mdn.mozilla.net/api/v2/scan?host=web-performance.ch will yield a more concise JSON payload as a response.

{
"id": 54167029,
"details_url": "https://developer.mozilla.org/en-US/observatory/analyze?host=web-performance.ch",
"algorithm_version": 4,
"scanned_at": "2024-11-21T15:13:11.468Z",
"error": null,
"grade": "D",
"score": 30,
"status_code": 200,
"tests_failed": 2,
"tests_passed": 8,
"tests_quantity": 10
}

In a tiny app this can look this:

localhost, api call (2024-11-21)

After launch of Observatory

The new system will also feature an API. For now, all API calls are still being processed by the old engines, so your results may vary for the moment.

https://developer.mozilla.org/en-US/observatory/docs/faq (2024-07-23 18:01)

On June 23rd, 2024, however, the API was completely unavailable.

http://localhost/obervatory/ (2024-07-23 18:02)