Cross Domain Error

Hello,

I have hosted website on example.com and frappe setup hosted as admin.example.com.

From website I am hitting REST call to frappe using Jquery AJAX,
but its showing cross domain error.

Please let me know how to handle cross domain exceptions in frappe.

Best Regards,
Saurabh

Hi,

It works!!! :smiley:

Add,
add_header Access-Control-Allow-Origin http://site_names
in frappe’s nginx conf file under server section

Then reload nginx using sudo service nginx reload

Regards,
Saurabh

1 Like

Great! Be aware that bench setup nginx will overwrite it.