> For the complete documentation index, see [llms.txt](https://doc.velneo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.velneo.com/35/velneo/velneo-web/cors-para-llamadas-xmlhttprequest.md).

# CORS para llamadas XmlHttpRequest vía API o mediante el objeto Consumo servicio Web

Velneo web se ejecuta dentro de los navegadores, dentro de su motor JavaScript, un [*sandboxing*](https://es.wikipedia.org/wiki/Sandbox) que mejora la estabilidad de las aplicaciones y asegura una máxima seguridad. Al mismo tiempo implica una serie de restricciones a las aplicaciones para su correcto funcionamiento.

En las aplicaciones desplegadas en web se sigue pudiendo usar las instrucciones de descarga por [XMLHttpRequest](https://es.wikipedia.org/wiki/XMLHttpRequest) o mediante el objeto [Consumo servicio Web](/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/consumo-servicio-web.md), pero en determinadas circunstancias pueden no estar permitidas al no tener una configuración [CORS](https://es.wikipedia.org/wiki/Intercambio_de_recursos_de_origen_cruzado) adecuada en el elemento al que hacemos referencia. En ese caso la ejecución de los procesos en el servidor ([3er plano](/35/velneo-vdevelop/proyectos-objetos-y-editores/de-aplicacion-y-datos/proceso.md#id-3o-plano)) podría ser la solución.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.velneo.com/35/velneo/velneo-web/cors-para-llamadas-xmlhttprequest.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
