Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Your Site URL is different

    XMLHttpRequest cannot load https://www.bommeltje.nl/website/wp-admin/admin-ajax.php. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.wolkengids.nl' is therefore not allowed access.

    Your website URL is https://www.wolkengids.nl but in your WordPress setting it is https://www.bommeltje.nl/

    Since the URL is different, the browser block the request.

    Thread Starter Bommeltje

    (@bommeltje)

    Thread Starter Bommeltje

    (@bommeltje)

    Lester, I found the problem.
    I have a htaccess file in the wp-admin directory.
    I changed the name temporarily and the vote works again.
    Do you have any idea how I could have the htaccess active with the polls working?

    This is what I have in the htaccess:

    order deny,allow
    deny from all
    allow from (my IP-addresses)

    Plugin Author Lester Chan

    (@gamerz)

    Thread Starter Bommeltje

    (@bommeltje)

    Thanks Lester,
    Your link pointed me in another direction.
    You can add specific files to .htaccess to allow access to them.

    order deny,allow
    deny from all
    allow from my IP-address
    allow from extra IP-address
    <Files “admin-ajax.php”>
    Satisfy any
    Order allow,deny
    Allow from all
    </Files>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I can but visitors can't vote’ is closed to new replies.