# Why is my Composer Power Up returning a CORS error?

Source: https://docs.arcxp.com/en/knowledge-articles/composer/why-is-my-composer-power-up-returning-a-cors-error-.html

## Question

Why would a Composer Power Up return a CORS error?

## Answer

To access data stored in Arc, ensure the Power Up is created and hosted under your Arc domain (e.g., https://{org}.arcpublishing.com). If the Power Up is hosted on any other domain, the browser will treat it as a different origin from the Arc XP APIs (which also use {org}.arcpublishing.com as the base domain), resulting in CORS errors.

**Never call Arc XP API endpoints directly from a public Power Up/iframe.** Doing so can expose authentication tokens in the client and introduce a security vulnerability, in addition to CORS issues.

![corserror1.webp](https://docs.arcxp.com/images/learning-center/image/img-65043ca23c2942aace99dc33568c764d.webp)

To access data stored in Arc, ensure the Power Up is created using PageBuilder/Fusion—either as a static file in /resources/plugins/composer or as an outputType, you should only access Arc XP APIs through content-sources. Direct API calls from the Power Up (even when internally hosted) can expose authentication tokens and introduce security vulnerabilities, in addition to CORS issues.

![nocorserror.webp](https://docs.arcxp.com/images/learning-center/image/img-7cca5967a6c2e82ca35ba6100e2c5737.webp)

## More Information

| [Arc XP University](https://docs.arcxp.com/en/resources/arc-xp-university.html)[Getting Started with the Custom Embed Power Up in Composer](https://docs.arcxp.com/en/products/composer/getting-started-with-composer/getting-started-with-the-custom-embed-power-up-in-composer.html)[Technical Specifications for Custom Embeds (Power Up) in Composer](https://dev.arcxp.com/composer/developer-docs/technical-specifications-for-custom-embeds-power-up-in-composer) |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
