I am working on a scenario in which some JavaScript files should be placed on a CDN. I want to have some mechanism so that when this file is loaded from the user side, I can guarantee that the files have not been tampered with and do come from the specified CDN.
I understand that the task is very simple if I use SSL, but still want to make sure that the correct files are served even over HTTP without SSL.
As far as I could look, there is no existing mechanism, such as digital signature for JavaScript files, which is supported on different platforms. Perhaps this is not necessary?
Is there any method built into browsers to validate the author of JavaScript files? Can I do this in a safe way?
javascript code-signing
baba26 Aug 01 '16 at 2:04 on 2016-08-01 14:04
source share