Closed anlambert closed 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:
fix 401 error when SWH bearer token is not set
bundle only woff2 webfont for fontawesome
fix code indentation
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!
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:
fix 401 error when SWH bearer token is not set
bundle only woff2 webfont for fontawesome
fix code indentation