ZIPCORSA

CORS Proxy for ZIP files

On various sites (like GitHub and Gitlab) CORS headers are not set for ZIP files. This means the browsers refuse to fetch them from fetch calls.

ZIPCORSA fixes this by serving as a server-side proxy.

All URLs are supported but only requests that have a Content-Type of application/zip are returned.

Usage

Call this with a URL appended to receive the ZIP file at that URL with Access-Control-Allow-Origin: * headers.


<script>
    fetch('https://zithub.pother.ca/https://github.com/owner/repo/archive/refs/heads/main/some.zip')
</script>