Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
[PWAs as URL handler article] Make same origin rules clearer (#5929)
Browse files Browse the repository at this point in the history
* Make rules clearer

WICG/pwa-url-handler#29 (comment)

* Update src/site/content/en/blog/pwa-url-handler/index.md

Co-authored-by: Joe Medley <[email protected]>

Co-authored-by: Joe Medley <[email protected]>
  • Loading branch information
tomayac and jpmedley authored Aug 6, 2021
1 parent 44c30ac commit 3c238e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/site/content/en/blog/pwa-url-handler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ subhead: |
authors:
- thomassteiner
date: 2021-06-03
updated: 2021-06-29
updated: 2021-08-05
description: |
After registering a PWA as a URL handler, when a user clicks on a hyperlink that matches
one of the registered URL patterns, the registered PWA will open.
Expand Down Expand Up @@ -118,6 +118,9 @@ Since the PWA lives on a different origin (`music.example.com`) than some of the
handle (e.g., `https://🎵.example.com`), the app needs to verify ownership of these other origins. This
happens in a `web-app-origin-association` file hosted on the other origins.

{% Aside %} Apps that want to handle URLs that live on the _same_ origin as the PWA likewise need to
specify the handling rules in a `web-app-origin-association` file hosted on said origin. {% endAside %}

This file must contain valid JSON. The top-level structure is an object, with a member named
`"web_apps"`. This member is an array of objects and each object represents an entry for a unique
web app. Each object contains:
Expand Down

0 comments on commit 3c238e2

Please sign in to comment.