Hi Luciano,
You can register an origin trial for localhost here:
Re-enabling by using a flag might be easier though.
(above workaround is specifically for Sandbox/free mendix apps)
But otherwise you can also try this easiest workaround:
Thanks!