SHARE FIX / COMPARTO SOLUCION - Forum

Forum Navigation
You need to log in to create posts and topics.

SHARE FIX / COMPARTO SOLUCION

@luishp

COMPARTO SOLUCION PARA HABILITAR CORS
Puede habilitar el CORS siguiendo estos pasos:

1.Vaya al "Administrador de archivos" y navegue hasta el directorio raíz del dominio en el que desea habilitar CORS.
2 Abra el archivo ".htaccess" y añádale el siguiente código:

Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE".
Header set Access-Control-Allow-Headers "Content-Type, Authorization, X-Requested-With".

Guarde los cambios en el archivo ".htaccess".

 

@gaev

SHARE FIX TO ENABLE CORS IN YOUR DOMAIN...
You can enable CORS by following these steps:

1.Go to "File Manager" and navigate to the root directory of the domain you want to enable CORS on.
2 Open the ".htaccess" file and add the following code to it:

Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE".
Header set Access-Control-Allow-Headers "Content-Type, Authorization, X-Requested-With".

Save the changes to the ".htaccess" file.