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 8d35a6b commit db18bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/KeycloakLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const hasAccess = ref(false)
function passReferrer () {
if (!document.referrer) return false
let domains = _.get(theme.value, 'referrer.domains', [])
if (!Arrays.isArray(domains)) domains = [domains]
if (!Arrays.isArray(domains)) domains = _.split(domains, ',')
let hasAccess = false
_.forEach(domains, domain => {
if (document.referrer.contains(domain)) {
Expand Down

0 comments on commit db18bcc

Please sign in to comment.