rdicosmo / updateswh

Browser extension to check and uptate archival of repositories in Software Heritage
MIT License
14 stars 6 forks source link

Fix XHR request for save code now on chrome plus some improvements #3

Closed anlambert closed 2 years ago

anlambert commented 2 years ago

Google Chrome forbids cross-site XHR inside an iframe so insert a div with the save icon directly in the browsed git repository page in order to send the save code now XHR in a context where it is allowed.

Also add following improvements:

rdicosmo commented 2 years ago

Thanks a lot for this refactoring of the code: getting rid of the iframe will make the extension much more robust wrt future CSP evolutions!