How to fix Access-Control-Allow-Origin (CORS origin) Issue for your HTTPS enabled WordPress Site

Issue arises when you make the wordpress site https from https

Below are 2 solutions to fix this.

  1. Properly find and replace the http and make it https
  2. Add below code to .htaccess

For main site

For subdomains

Live Fix:


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *