• Hi Phil, I have some problems with the plugin, the clients try to enter but the age gate keeps loading and does not disappear, it does not allow entering the content. This happens with all the pages of the website.

    Attached I send u a video

    https://www.screencast.com/t/Vydlp3d8n

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @lemontronik – I’ve just tested in chrome and Firefox and both seem to work ok. Have you done something to fix or are you still having issues?

    Thanks
    Phil

    Thread Starter Lemontronik

    (@lemontronik)

    Hi Phil. The problem occurs when it is a new browser that has never entered the website.

    Test by clearing the cache, cookies, and website history, or test on a device or browser where you have never linked the URL and you can recreate the error.

    See this video: https://www.screencast.com/t/fky1vXlI

    Plugin Author Phil

    (@philsbury)

    Hi @lemontronik,

    I understand what is happening.

    If you visit your site under HTTPS then it works, but under HTTP then It doesn’t as the ajax_url function is returning the HTTPS version. This is giving a CORS error:

    
    Access to XMLHttpRequest at 'https://bhangbox.com.co/wp-admin/admin-ajax.php' from origin 'http://bhangbox.com.co' has been blocked by CORS policy: Request header field x-requested-with is not allowed by Access-Control-Allow-Headers in preflight response.
    

    I would make sure you always serve the site under HTTPS, but if you can’t do that, maybe switch from AJAX to the REST endpoint in the advanced settings as that’ll probably be allowed through.

    Thanks
    Phil

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘When validating the age, the plugin stays loading’ is closed to new replies.