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

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

parent c05da905
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
</init-param> </init-param>
<init-param> <init-param>
<param-name>allowedHeaders</param-name> <param-name>allowedHeaders</param-name>
<param-value>authorization,content-type,x-csrf-token</param-value> <param-value>*</param-value>
</init-param> </init-param>
<!-- Do not chain preflight request to application --> <!-- Do not chain preflight request to application -->
<init-param> <init-param>
......
...@@ -6,13 +6,13 @@ GenesysPGR = function(baseUrl, clientId) { ...@@ -6,13 +6,13 @@ GenesysPGR = function(baseUrl, clientId) {
this.clientId = clientId; this.clientId = clientId;
this.baseUrl = baseUrl; this.baseUrl = baseUrl;
this.clientSecret = null; this.clientSecret = null;
};
this.defaultOptions = { GenesysPGR.defaultOptions = {
startAt: 1, startAt: 1,
maxRecords: 50, maxRecords: 50,
success: new Function(), success: new Function(),
error: new Function() error: new Function()
};
}; };
GenesysPGR.prototype.getUrl = function(apiCall) { 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