-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
29 lines (22 loc) · 1018 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
RewriteEngine On
# Configurar encabezados CORS
<IfModule mod_headers.c>
Header always set Access-Control-Allow-Origin "https://isabelrodenas.es"
</IfModule>
#Header always set Access-Control-Allow-Origin "http://localhost:3000"
# Permitir otros encabezados y métodos CORS si es necesario
<IfModule mod_headers.c>
Header always set Access-Control-Allow-Headers "Content-Type, Authorization"
Header always set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
</IfModule>
# Permitir otros encabezados y métodos CORS si es necesario
<IfModule mod_headers.c>
Header always set Access-Control-Allow-Headers "Content-Type, Authorization"
Header always set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
</IfModule>
# Si la solicitud es un archivo o directorio existente, no redirigir
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Redirigir todas las demás solicitudes a index.html
RewriteRule ^ index.html [L]