funkhaus / wp-graphql-cors

Makes WP GraphQL's authetication "just work". It does this by customizing the CORS headers.
GNU General Public License v3.0
112 stars 21 forks source link

Allowed origins #30

Closed oskarmodig closed 3 years ago

oskarmodig commented 3 years ago

Proposed fixes for #29

I'm not very knowledgeable about $_SERVER, but $_SERVER['HTTP_ORIGIN'] was set for us when $_SERVER['HTTP_REFERER'] wasn't.