editor:potential fix for requests cancelled due to same origin policy

This PR should few issues encountered due to the ajax requests made by the online editor (tested with nginx)
Reporting issue:
https://groups.google.com/forum/?fromgroups#!searchin/web2py/raspberry$20pi/web2py/PV8UHqc3AW4/Gr2sDPuzwm8J