Open SimplyPancake opened 2 months ago
» curl -H "Origin: https://app.inter-actief.test:5173/" -H "Accept: application/json" -H "Content-Type: application/json" -X POST https://amelie-graphql.kube.ia.utwente.nl/graphql/ -d '{"query": "{activities(limit:1){results{summary}}}"}'
{"data":{"activities":{"results":[{"summary":"OWIHFOEMTZ"}]}}}%
Seems to work just fine?
It kinda looks like the request is sent to "https://amelie-graphql.kube.ia.utwente.nl/graphql" and not "https://amelie-graphql.kube.ia.utwente.nl/graphql/" (note trailing slash), which causes a redirect, which the cors preflight request doesn't like. So should be simple to fix by them adding a trailing slash
The company that is building our frontend is trying to use our GraphQL backend, but they are running into a CORS error. Access to fetch at 'https://amelie-graphql.kube.ia.utwente.nl/graphql' from origin 'https://app.inter-actief.test:5173/' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
The Access-Control-Allow-Origin header should be updated to include their URL ('https://app.inter-actief.test:5173/')