# Axios, graphql: No 'Access-Control-Allow-Origin' header is present on the requested resource

**URL:** <https://community.bitquery.io/t/axios-graphql-no-access-control-allow-origin-header-is-present-on-the-requested-resource/897>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [March 11, 2022, 6:54am UTC](https://community.bitquery.io/t/axios-graphql-no-access-control-allow-origin-header-is-present-on-the-requested-resource/897 "2022-03-11T06:54:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![burgossrodrigo](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@burgossrodrigo](https://community.bitquery.io/u/burgossrodrigo)\
**Post date:** [March 11, 2022, 6:54am UTC](https://community.bitquery.io/t/axios-graphql-no-access-control-allow-origin-header-is-present-on-the-requested-resource/897/1 "2022-03-11T06:54:07Z")

</div>

Maybe it’s duplicated anyway i’ve searched this specific case without finding anything related.

I’m working to plot a chart with tradingview and bitquery api using axios and graphql

The config of my query goes like this:

```auto
Bitquery.endpoint, {
                query: Bitquery.GET_COIN_INFO,
                variables: {
                    "tokenAddress": symbolName
                },
                mode: 'cors',
                headers: {
                    "Content-Type": "application/json",
                    "X-API-KEY": "XXXXXXXXXXX",
                    "Access-Control-Allow-Origin" : "http://localhost:3000",
                    "Access-Control-Allow-Credentials" : "true",
                    "Access-Control-Allow-Methods" :" GET, POST, OPTIONS",
                    "Access-Control-Allow-Headers" : "Origin, Content-Type, Accept"                    
                }
            }
        );

```

But i still receiving this error on console:

```auto

Access to XMLHttpRequest at 'https://graphql.bitquery.io/' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

```

Could someone give me a hint upon this? Thank you!

---

<div class="post-metadata">

**Author:** ![aman](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@aman](https://community.bitquery.io/u/aman)\
**Post date:** [March 16, 2022, 10:08am UTC](https://community.bitquery.io/t/axios-graphql-no-access-control-allow-origin-header-is-present-on-the-requested-resource/897/2 "2022-03-16T10:08:12Z")

</div>

[Telegram: Contact @Bloxy\_info](https://t.me/Bloxy_info/33630) here is the query I ran. I didn’t find any problem. Can you please try a similar approach

---

<div class="post-metadata">

**Author:** ![burgossrodrigo](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@burgossrodrigo](https://community.bitquery.io/u/burgossrodrigo)\
**Post date:** [March 17, 2022, 4:38am UTC](https://community.bitquery.io/t/axios-graphql-no-access-control-allow-origin-header-is-present-on-the-requested-resource/897/3 "2022-03-17T04:38:53Z")

</div>

Ok i’ll try to refactory this but i had copied the code from you tradingview tutorial. Do you guys have a new one?
