Skip to content

Commit

Permalink
encode the apikey
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamish-taylor committed May 16, 2024
1 parent a5399b5 commit 9801942
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/raygun.loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,7 @@
clearInterval(metadata.ping.pingIntervalId);
}

var apiKey = Raygun.Options._raygunApiKey;

var url = "https://api.raygun.io/ping?apiKey=" + apiKey;
var url = "https://api.raygun.io/ping?apiKey=" + encodeURIComponent(Raygun.Options._raygunApiKey);
var data = {
crashReportingEnabled: crashReportingEnabled || false,
realUserMonitoringEnabled: realUserMonitoringEnabled || false,
Expand Down

0 comments on commit 9801942

Please sign in to comment.