Commit 892eb2bd authored by Matija Obreza's avatar Matija Obreza

Feedback from CGN: Allow CORS headers, webapi.js GenesysPGR.defaultOptions is not accessible

parent c05da905
......@@ -121,7 +121,7 @@
</init-param>
<init-param>
<param-name>allowedHeaders</param-name>
<param-value>authorization,content-type,x-csrf-token</param-value>
<param-value>*</param-value>
</init-param>
<!-- Do not chain preflight request to application -->
<init-param>
......
......@@ -6,13 +6,13 @@ GenesysPGR = function(baseUrl, clientId) {
this.clientId = clientId;
this.baseUrl = baseUrl;
this.clientSecret = null;
};
this.defaultOptions = {
startAt: 1,
maxRecords: 50,
success: new Function(),
error: new Function()
};
GenesysPGR.defaultOptions = {
startAt: 1,
maxRecords: 50,
success: new Function(),
error: new Function()
};
GenesysPGR.prototype.getUrl = function(apiCall) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment