• Resolved wpdiv

    (@bilimokur)


    Hello. Thank you for your license api. I have some quetions. Can you share a working example for ajax request? Because i got cross browser error all time.

    I am trying to make ajax request to this url.
    https://mysite.com/wp-admin/admin-ajax.php?action=license_key_activate&key etc...

    But all time got “No ‘Access-Control-Allow-Origin’ header is present on the requested resource.” error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor 10Quality

    (@10quality)

    If you are getting a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource.” sounds that you are having an issue with the way your wordpress setup is configured to handle requests headers.

    We would recommend you to take a look at how you can modify them since we ain’t modifying them at all in the plugin.

    Usually this can be fixed by modifying the .htaccess file on your wordpress root. Here is an article that explaing this better:
    https://crunchify.com/how-to-fix-access-control-allow-origin-issue-for-your-https-enabled-wordpress-site-and-maxcdn/

    Plugins like W3 Total Cache may also be affecting the CORS origin issue.

    Regards.

    Plugin Contributor 10Quality

    (@10quality)

    Version 1.2.0 includes an option in the settings to override WordPress headers and to set any CORS related headers for the API.

    Please check it out, make sure Allow Credentials (Access-Control-Allow-Credentials) is set to true to allow successful javascript calls.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Making request from ajax’ is closed to new replies.