Manuscript upload CORS error with a development build not on localhost
Observed when deploying a development build on http://kotahidev.cloud68.co. Attempting to upload a manuscript gave a CORS error (for attempting to POST to http://localhost/convertDocxToHTML
).
It seems that the pubsweet-client host is being set to localhost
rather than receiving th same value as CLIENT_HOST
. I managed to work around this by modifying config/default.js
line 143 to hardcode the pubsweet client host to kotahidev.cloud68.co
. This should preferably just work out of the box, or at least be controllable via environment variables.