Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
892eb2bd
Commit
892eb2bd
authored
Mar 26, 2015
by
Matija Obreza
Browse files
Feedback from CGN: Allow CORS headers, webapi.js GenesysPGR.defaultOptions is not accessible
parent
c05da905
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/web.xml
View file @
892eb2bd
...
...
@@ -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>
...
...
src/main/webapp/html/js/webapi.js
View file @
892eb2bd
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment