• I have installed weDocs plugin on my WordPress website https://myclassadmin.com/blog/index.php/docs/user-manual/

    In bottom there is Was this article helpful to you? with Yes and No option, when I try to vote, it hits wp-admin/admin-ajax.php file and it is showing as forbidden, I have granted required permissions but it doesn’t help me.

    Also you can check my .htaccess file and if it needs to change then you can say me about that too

    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nishant2699

    (@nishant2699)

    Sorry, I have mistakenly marked it as NSFW. I don’t know how to undo it.

    • This reply was modified 4 years, 3 months ago by nishant2699.

    @nishant2699

    You have not activated SSL (https) and this may cause problems. You can try the following (.htaccess):

    Access-Control-Allow-Origin: https://myclassadmin.com
    

    or

    Access-Control-Allow-Origin: https://myclassadmin.com
    

    Read more: https://stackoverflow.com/a/12943371

    • This reply was modified 4 years, 3 months ago by Pixelbart.
    • This reply was modified 4 years, 3 months ago by Pixelbart.
    Thread Starter nishant2699

    (@nishant2699)

    Hey @pixelbart ,

    I tried the solution that you mentioned, but it didn’t worked at all.
    You have any other solutions regarding this?

    And even without trying your solution, it was by default set to
    Access-Control-Allow-Origin: https://myclassadmin.com
    I just checked that!

    • This reply was modified 4 years, 3 months ago by nishant2699.

    @nishant2699

    You can also check the following things:

    Does your .htaccess say something like that? If so, take it out:

    <FilesMatch "(admin-ajax.php)">
    Require all denied
    </FilesMatch>
    

    Also check if your wp-admin folder is on CHMOD 744 or 755.

    Do you use other plugins? Try to disable them all and try again. So that you can rule out that it is due to other plugins.

    Otherwise I can only advise you to enable https.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[NSFW] admin-ajax.php file forbidden when plugin tries to hit’ is closed to new replies.