Skip to content

Commit

Permalink
wip: Allow to provide access to the site using a referrer policy #11
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Jul 3, 2024
1 parent af455ba commit 3388dd1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layouts/KeycloakLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ function passReferrer () {
console.log(document.referrer)
if (!document.referrer) return false
let domains = _.get(theme.value, 'referrer.domains', [])
if (!Array.isArray(domains)) domains = _.split(domains, ',')
console.log(domains)
if (!Array.isArray(domains)) {
console.log('array', domains)
domains = _.split(domains, ',')
}
console.log(domains)
let pass = false
_.forEach(domains, domain => {
Expand Down

0 comments on commit 3388dd1

Please sign in to comment.