w3c-fedid / idp-registration

A proposal to extend FedCM to allow RPs to accept "any" registered IdP
5 stars 0 forks source link

Allow relative urls in the IdentityProvider.register() call #14

Open samuelgoto opened 3 weeks ago

samuelgoto commented 3 weeks ago

I ran into this issue while trying to put a local server up, taking notes so that it doesn't fall through the cracks.

During development, it is useful to use relative URLs (say, "/config.json", rather than "https://idp.example/config.json") in the register() call so that you can have a local server listening to localhost. The current implementation throws an Error: cross-site configURL when a relative URL is passed.