Understanding allowedGraphqlOrigins
config
#13425
-
Hey there, I'm trying to upgrade our Craft CMS starter with a more bullet proof Vue/Apollo/GraphQL setup and I want to block any query from outside. I already build my controller to fetch a CSRF token and then deliver a GQL Token, but if I set Am I missing something about this config setting? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That config setting is only used to set the |
Beta Was this translation helpful? Give feedback.
That config setting is only used to set the
Access-Control-Allow-Origin
header on preflightOPTIONS
Ajax request responses (part of CORS). It won’t actually block requests that don’t match the origin value(s).