are you trying to do CORS or what?
# ktor
m
are you trying to do CORS or what?
j
I'm trying to get the GraphQL Playground(https://legacy.graphqlbin.com/) interface to work with my backend but it's doing some options request, and I don't have much experience setting CORS up
m
Ok. Can you provide headers etc
j
General
Copy code
Request URL: <http://localhost:8080/graphql>
Request Method: OPTIONS
Status Code: 403 Forbidden
Remote Address: [::1]:8080
Referrer Policy: no-referrer-when-downgrade
and request headers
Copy code
OPTIONS /graphql HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Access-Control-Request-Method: POST
Origin: <http://localhost:3000>
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36
Access-Control-Request-Headers: content-type,x-apollo-tracing
Accept: */*
Referer: <http://localhost:3000/v2/new>
Accept-Encoding: gzip, deflate, br
Accept-Language: da,en-GB;q=0.9,en;q=0.8,en-US;q=0.7,fo;q=0.6
m
Do you have the CORS feature installed?
j
I tried not having it enabled and that doesn't work, and I tried enabling it with only the default configuration and that didn't work either
m
What are you expecting to happen?
j
not getting 403 Forbidden
I have created a options route on the "/graphql", but it doesn't even reach there