Does anyone know how to enable CORS for the REST API? This is for newsletter signup.
Thought so. Does this go in
$ frappe@localhost: ~/frappe-bench/config/nginx.conf ?
Yes, and restart nginx after that
If you’ve used the easy install script on Ubuntu 14.04, I believe you’ll actually want to make the change in
Ive copied the text within the link to ~/frappe-bench/config/nginx.conf and restart nginx but got "403 Forbidden "error when navagate to my erpnext
I am getting below error in firefox after login into frappe application.
"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://example.app.com:9000/socket.io/?EIO=3&transport=polling&t=NhEmynP. (Reason: CORS request did not succeed).
I have a wrapper react native app which is loading the frappe url in webview component. I believe this is due to cors issue. I am getting different error (403 forbidden) when frappe tries to load the desk in Chrome.
- I have set site configuration to enable cors
- Nginx configuration done as described here (https://gist.github.com/revant/4baf8c4dadc9b6b28ff3d85bd049c066)
Any help is highly appreciated.