Skip to content

Commit

Permalink
Fixed Authorization header for mobile create/edit pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-brinkman committed Nov 1, 2023
1 parent 0d8bdb4 commit bd1cf80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grails-app/views/layouts/mobile.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
withCredentials: true
},
beforeSend: function (xhr) {
<g:if test="${authorization}">
xhr.setRequestHeader('Authorization', "${raw(authorization)}");
<g:if test="${Authorization}">
xhr.setRequestHeader('Authorization', "${raw(Authorization)}");
</g:if>
<g:elseif test="${grailsApplication.config.getProperty("mobile.authKeyEnabled", Boolean) && authKey && userName}">
xhr.setRequestHeader('authKey', "${raw(authKey)}");
Expand Down

0 comments on commit bd1cf80

Please sign in to comment.