Closed lucacasonato closed 8 months ago
The way CSP and SRI appear to do this (in WebKit anyway) this is by trying one and then the other. That's not something we want to endorse.
Not having any reason that anyone would ever want this, we're not planning on doing this.
Elsewhere, @bakkot says that apparently Node.js's
Buffer.from(x, "base64")
, as well as CSP, support mixing base64 and base64 URL in the same string, when decoding. That might be a variant worth supporting in the API as well.Originally posted by @domenic in https://github.com/bakkot/proposal-arraybuffer-base64/issues/7#issuecomment-875827257