question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

The exact error:

Fetch API cannot load http://demo.api-platform.com/docs.jsonld. Response for preflight is invalid (redirect)

image

How to reproduce:

  1. I’m using https://demo.api-platform.com as an api endpoint image 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

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

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
pascalwackercommented, Oct 10, 2018

Is there an ETA on this issue? For now I just overwrote api_platform.hydra.listener.response.add_link_header and api_platform.router in my servies.yaml file (which is quite hacky and shouldn’t be deployed to prod IMO)

1reaction
dunglascommented, May 10, 2018

Yes, @Simperfit is handling it (we’ll publish soon a new demo)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - API Platform
Troubleshooting · Self-Signed TLS Certificate · Authenticated API · ApiDocumentation doesn't exist · Cannot read property '@type' · Dereferencing a URL did not...
Read more >
"Unable to retrieve API documentation" on admin of api-platform
I trying to use all features of api-platform to test this solution. I don't want use the docker stack to understand the construction....
Read more >
@api-platform/admin - npm Package Health Analysis | Snyk
Based on project statistics from the GitHub repository for the npm package @api-platform/admin, we found that it has been starred 421 times, ...
Read more >
@api-platform/admin - npm
You can also customize all screens by using React-admin components and even raw JavaScript/React code. Demo. Click here to test API Platform ......
Read more >
React Admin - Open-Source Framework for B2B applications
Developer time is expensive, so react-admin focuses on productivity and maintainability. See what you can build in a week. E-commerce Admin (demo, source)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found