javascript - Google Drive API: How can I support a large number of authorized origins? -


i developing feature on website allow users upload server side document google drive account.

the issue have when create client id authentication need specify 1 or more authorized javascript origins strict requirements.

this feature needs service many different websites (around 5000 new sites being added) have base url structures similar not same (ex: https://site1.mydomain.com & https://site2.mydomain.com).

according google's in-page documentation when creating client id wildcards not supported:

for use requests browser. origin uri of client application. can't contain wildcard (http://*.example.com) or path (http://example.com/subdir). if you're using nonstandard port, must include in origin uri.

is there way can around restriction without having maintain thousands of urls manually?