Closed Simon-Dirks closed 2 months ago
I'm processing link + image URLs through a newly created "CDN service" now. Feel free to edit the function below to handle specific subdomains or more complex regex. Note that since we're not using a back-end, any "secrets" are not secret at all and publicly available in the HTML + js (as well as in this repo). This functionality should allow you, however, to remove the tokens from the URLs in the triple store.
Any iri referring to *.opslag.razu.nl should include a JWT-token. The JWT-token is subdomain-specific, so this implementation should support adding multiple domains with their own secrets. aka: bunnik.opslag.razu.nl/.... has a different secret than houten.opslag.razu.nl/....
See for the documentation: https://public-assets.scalia.nl/docs/SI-JWTProtection-ScaliaCDN-010323-1338.pdf