You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tengo una app con rutas Api de Sveltekit y quiero usarlas desde otra App de Sveltekit
quisiera poder usarlas pero no me funcionan
:5001/login:1 Access to fetch at 'http://localhost:5000/api/conexion/' from origin 'http://localhost:5001' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
tan simple como responder un TRUE desde la otra app....que deberia hacer?? help"! he intentado con hooks.server.js
export async function handle({ event, resolve }) {
if (event && event.request && event.request.url && event.request.url.pathname && event.request.url.pathname.startsWith('/api')) {
Describe the bug
Tengo una app con rutas Api de Sveltekit y quiero usarlas desde otra App de Sveltekit
quisiera poder usarlas pero no me funcionan
:5001/login:1 Access to fetch at 'http://localhost:5000/api/conexion/' from origin 'http://localhost:5001' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
tan simple como responder un TRUE desde la otra app....que deberia hacer?? help"! he intentado con hooks.server.js
export async function handle({ event, resolve }) {
if (event && event.request && event.request.url && event.request.url.pathname && event.request.url.pathname.startsWith('/api')) {
}
const response = await resolve(event);
return response;
}
Necesito ayuda...
Reproduction
export async function handle({ event, resolve }) {
if (event && event.request && event.request.url && event.request.url.pathname && event.request.url.pathname.startsWith('/api')) {
}
const response = await resolve(event);
return response;
}
Necesito ayuda...
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: