Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/javascript/cors_header_proxy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
async function handleRequest(request) {
const url = new URL(request.url)
const apiurl = url.searchParams.get('apiurl')
const apiurl = unescape(unescape(url.search.substr(8)));
// Rewrite request to point to API url. This also makes the request mutable
// so we can add the correct Origin header to make the API server think
// that this request isn't cross-site.
Expand Down