Hello,
I am new to Frappe/ERPNext. Currently I am working on a Thunderbird Plugin for ERPNext. The Plugin calls some APIs from Javascript ( = Thunderbird Addon). I have a Developer Version of ERPNext which I run with “start bench”. It is not in Production and I don’t want it in production yet.
Unfortunately the Frappe API can not be called. I get the error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at [http://localhost:8000/api/resource/Contact?limit_page_leng](http://localhost:8000/api/resource/Contact?limit_page_length=10000&fields=)
Surprisingly, when I do the same API call on a existing, in production Version of ERPNext it works without problems. (Probably are the Cross Domain Headers for NGINX set in that version).
I suppose the error is somewhere in the configuration.
Can somebody help me to set the CORS Headers for developer version of frappe?
Thanks a lot