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:

Courtesy: https://crunchify.com/how-to-fix-access-control-allow-origin-issue-for-your-https-enabled-wordpress-site-and-maxcdn/

About author

Love coding, crazy about logic, like solution architecting and solving problems. Thirsty for knowledge, challenges & most importantly innovation. One of the passionate brain behind SpryOX

Leave a Reply

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