Skip to content

Commit f6ec683

Browse files
committed
Don't send the _JavaScriptKey key when none is provided
1 parent 9095e34 commit f6ec683

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/RESTController.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ const RESTController = {
161161
}
162162

163163
payload._ApplicationId = CoreManager.get('APPLICATION_ID');
164-
payload._JavaScriptKey = CoreManager.get('JAVASCRIPT_KEY');
164+
let jsKey = CoreManager.get('JAVASCRIPT_KEY');
165+
if (jsKey) {
166+
payload._JavaScriptKey = jsKey;
167+
}
165168
payload._ClientVersion = CoreManager.get('VERSION');
166169

167170
var useMasterKey = options.useMasterKey;

0 commit comments

Comments
 (0)