javascript-api icon indicating copy to clipboard operation
javascript-api copied to clipboard

api url points to localhost:8888

Open luisgj opened this issue 8 years ago • 3 comments

Requests to the api are being rejected because the api url is being set incorrectly. This is almost a replica of issue number 13 but im using jquery instead of angularjs.

http://localhost:8888/core/js/api/contacts?callback=json49788018478453026 ......

I think this is due to "this.namespace" the url builder that is in place. it tries to find this.namespace, which is undefined, and this points the script to localhost instead of agilecrm.com.

I'm using the latest script via your CDN, and with essentially a copy paste of what is listed below.

luisgj avatar May 23 '17 16:05 luisgj

@agilecrm anyone going to fix this?

chrislewispac avatar Sep 29 '17 22:09 chrislewispac

Hello @luisgj / @chrislewispac , Thank you for contacting Agile CRM, I understand that you have an issue with the Javascript file as it is pointing to localhost:8888. To find a resolution for this issue can you please provide us with the website URL? Thank you. Agile CRM Team.

agilecrm avatar Oct 05 '17 13:10 agilecrm

I'm having the same problem, how do I fix it?

EDIT: My url is https://www.willu.com.br/honeymoon-quiz/

GuiCarneiro avatar Sep 03 '18 15:09 GuiCarneiro