# CORS support

Cross-Origin Resource Sharing, or CORS, is a process that allows web applications from one domain to interact with resources from a different domain.

## Example of using CORS

Let's illustrate CORS with a simple example.

Imagine you have a bucket full of pictures in Impossible Cloud Storage. You also have a website that lets your users browse these pictures. Essentially, your website (let's say, "mysite.com") is connected to your Impossible Cloud Storage bucket.

But there's a catch - web browsers have safety measures. They don't like it when a website tries to load content from a different domain. In this case, your website "mysite.com" is trying to fetch pictures from Impossible Cloud Storage, which is a different domain.

This is where CORS comes in. By setting up CORS on your Impossible Cloud Storage bucket, you're telling the browsers, "It's OK, mysite.com is allowed to access these pictures." With CORS, the browser will happily display your photos to your users.

Without CORS, your users would be staring at a blank screen instead of admiring your stunning pictures. That's why CORS is important for connecting your Impossible Cloud Storage with your web application.


---

# Agent Instructions: 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:

```
GET https://docs.impossiblecloud.com/impossible-cloud-help/security/cors-support.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
