api-platform / api-platform/admin

admin doesn't work against demo.api-platform.com

Open
#14 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
516
Forks
134
PR merge metrics
No merged PRs in 30d

Description

***The exact error:***
```
Fetch API cannot load http://demo.api-platform.com/docs.jsonld. Response for preflight is invalid (redirect)
```
![image](https://cloud.githubusercontent.com/assets/1675033/26644007/00dbdd94-463c-11e7-8aa9-c68122256996.png)

***How to reproduce:***

1. I'm using https://demo.api-platform.com as an api endpoint
![image](https://cloud.githubusercontent.com/assets/1675033/26643835/5a39dda6-463b-11e7-8928-96dd7246da10.png)
OPTIONS response contains LINK header which refers to http://demo.api-platform.com/docs.jsonld (although I specified https).

2. It is requesting http://demo.api-platform.com/docs.jsonld and receives `301 Moved Permanently` and `Location:https://demo.api-platform.com/docs.jsonld`
![image](https://cloud.githubusercontent.com/assets/1675033/26643945/b7e69642-463b-11e7-9192-c7204fcfed17.png)

Also notice that first response is HTTP/2 and second one is HTTP 1.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.