• Resolved stgz

    (@stogz)


    Hi
    Thank you for the great rating plugin.

    The plugin runs fine on both regular and amp pages. But for the amp page that serves from the google cache (https://www.google.com/amp/s/mysite.com/cat/post-url/amp/) when the rating is clicked it will display the error “There was an error rating this post!”.

    The picture: https://ibb.co/qJjzjWZ

    when I inspect element in chrome browser there is an error:

    Access to fetch at ‘https://mysite.com/wp-admin/admin-ajax.php has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header contains the invalid value ‘*.ampproject.org’. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error on amp page that serve from google cache’ is closed to new replies.