CORS Issues with Subdomains
People often ask about using ZipCodeAPI with Subdomains. It works and you can test it before purchasing. Here are some things to check if you run into any issues.
If you are seeing CORS (Cross-Origin Resource Sharing) issues in your browser,
– You should specify your main domain
example.com and any subdomain on the client setup.
Issues Accessing the API through PHP
Check your settings, in particular the
allow_url_fopen setting in your web host’s
php.ini file. Make sure it is set to allow the
file_get_contents function to work. It’s a boolean, so it is easy fix. Also, some hosting provides claim changes to this file are instantaneous, but it might really take 5-10 minutes.
Other Issues Accessing the API