title: GraphiQL 404 page not found
body: <p>Based on this Shopify <a href="https://help.shopify.com/en/api/custom-storefronts/storefront-api/getting-started#using-graphiql" rel="nofollow noreferrer">documentation</a>, I'm trying to execute this GraphQL query:</p>
  
  <pre><code>query getDiscount($code: DiscountCodeSortKeys) {
    priceRules(first: 1) {
      edges {
        node {
          discountCodes(first: 1, sortKey: $code) {
            edges {
              node {
                code
                id
              }
            }
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>In GraphiQL in my Shopify admin page I get this output:</p>
  
  <pre><code>{
    "data": {
      "priceRules": {
        "edges": [
          {
            "node": {
              "discountCodes": {
                "edges": [
                  {
                    "node": {
                      "code": "discount_code_1",
                      "id": "gid://shopify/PriceRuleDiscountCode/1888888"
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    },
    "extensions": {
      "cost": {
        "requestedQueryCost": 6,
        "actualQueryCost": 6,
        "throttleStatus": {
          "maximumAvailable": 1000,
          "currentlyAvailable": 994,
          "restoreRate": 50
        }
      }
    }
  }
  </code></pre>
  
  <p>However, when I execute the same query in GraphiQL IDE after editing the HTTP headers and putting the GraphQL endpoint (<a href="https://my_domain.com/api/graphql" rel="nofollow noreferrer">https://my_domain.com/api/graphql</a>), I get a html code with the title of 404 page not found as you can see in the picture below:</p>
  
  <p><a href="https://i.stack.imgur.com/BbGsF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BbGsF.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/IuiOe.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IuiOe.jpg" alt="enter image description here"></a></p>