File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
lib/plugins/event_dispatcher Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ module.exports = {
11
11
*/
12
12
dispatchEvent : function ( url , params ) {
13
13
return new bluebird ( function ( resolve , reject ) {
14
+ // add param for cors headers to be sent by the log endpoint
15
+ url += '?wxhr=true' ;
14
16
if ( params ) {
15
- url += '? ' + toQueryString ( params ) ;
17
+ url += '& ' + toQueryString ( params ) ;
16
18
}
17
19
18
20
var req = new XMLHttpRequest ( ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " optimizely-client-sdk" ,
3
- "version" : " 0.1.1 " ,
3
+ "version" : " 0.1.2 " ,
4
4
"description" : " Javascript SDK for client testing" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
21
21
"dependencies" : {
22
22
"bluebird" : " ^3.4.0" ,
23
23
"lodash" : " ^4.13.1" ,
24
- "optimizely-server-sdk" : " ^0.1.1 "
24
+ "optimizely-server-sdk" : " ^0.1.2 "
25
25
},
26
26
"devDependencies" : {
27
27
"chai" : " ^3.5.0" ,
You can’t perform that action at this time.
0 commit comments