小编Tec*_*ite的帖子

Headless WordPress GraphQL 端点导致 XAMPP 找不到 404 URL

我正在尝试使用通过 XAMPP Apache localhost 服务器提供的 GraphQL 端点(从无头 WordPress 项目自动生成),但是当我使用 WordPress 中的 GraphQL 设置建议的端点时(https://localhost/does-pizza/ graphql) 我得到一个 404 URL not found。

一些细节可能对任何试图回答这个问题的人有用:

  • 项目文件夹名称实际上是“does-pizza”,因此自动生成的端点

在此输入图像描述

  • 我的项目的 WordPress 端工作得很好,事实上,我可以通过提供的 Ide 发送 GraphQL 查询

在此输入图像描述

  • wp-config.php 以防万一您需要它
/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the installation.
 * You don't have to use the web site, you can copy this file to "wp-config.php"
 * and fill in the values.
 *
 * This file contains the following configurations:
 * …
Run Code Online (Sandbox Code Playgroud)

xampp wordpress graphql headless-cms

1
推荐指数
1
解决办法
1523
查看次数

标签 统计

graphql ×1

headless-cms ×1

wordpress ×1

xampp ×1