Removed hard-coded localhost URL and dependency on cors package.