Skip to content

Commit

Permalink
Merge branch 'main' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Apr 15, 2024
2 parents aa8a0a9 + e9e7990 commit b090e0d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ function initialize() {
// Avoid CORS (for all requests) for Dandiset creation
win.webContents.session.webRequest.onBeforeSendHeaders(
(details, callback) => {
callback({ requestHeaders: { Origin: '*', ...details.requestHeaders } });
callback({ requestHeaders: {
Origin: '*',
Referer: "http://localhost:5174/", // Spoof the referrer
...details.requestHeaders
} });
},
);

Expand Down

0 comments on commit b090e0d

Please sign in to comment.