Skip to content

Commit

Permalink
fix(ipc/bridge): explicit opt-out of auth component on 'npm:' URIs to…
Browse files Browse the repository at this point in the history
… allow for '@' character
  • Loading branch information
jwerle committed Aug 1, 2024
1 parent 7a875ac commit 235154e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ipc/bridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,9 @@ export * from '{{url}}'
);

registration->SetAllowedOrigins(allowedOriginsCount, allowedOrigins);
registration->put_HasAuthorityComponent(true);
if (entry.first != "npm") {
registration->put_HasAuthorityComponent(true);
}
registration->put_TreatAsSecure(true);
registrations[registrationsCount++] = registration.Get();
registrationsSet.insert(registration);
Expand Down

0 comments on commit 235154e

Please sign in to comment.