SRI for Google Sign-In

China☆狼群 提交于 2021-01-28 01:16:49

问题


I have a requirement for a site, I need to set the Subresource Integrity (https://www.w3.org/TR/SRI/) for the Google sign-in functionality, can someone tell me if it's feasible or if the resource (https://apis.google.com/js/platform.js) changes and I need to use any version mechanism or workaround in order to implement the SRI.

I've tried setting the hash generated in https://www.srihash.org/ and works fine but I don't know if this is going to continue working in the future:

<script src="https://apis.google.com/js/platform.js" integrity="sha384-8BbIfH4u6uFaQg1wXFd+Bm1mY1i+Gkl485e4TAAaBp5kHTq8bueCRXIvnN82pmdZ" crossorigin="anonymous"></script>

来源:https://stackoverflow.com/questions/57666406/sri-for-google-sign-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!