【发布时间】:2019-09-17 13:36:13
【问题描述】:
我正在尝试为我的 API 创建管理面板,因此我决定生成 API Platform Admin。
我解决了 CORS 和身份验证的所有问题,但我仍然收到“无法检索 API 文档。”。开发者工具的“网络”部分没有错误。
我的 CORS 设置:
nelmio_cors:
defaults:
origin_regex: true
allow_origin: ['*']
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
allow_headers: ['Content-Type', 'Authorization', 'X-Access-Token']
expose_headers: ['Link']
max_age: 3600
paths:
'^/': ~
知道如何解决这个问题吗?
【问题讨论】:
标签: api-platform.com