wp-graphql-cors icon indicating copy to clipboard operation
wp-graphql-cors copied to clipboard

Block unauthorized domains not working

Open dandin84 opened this issue 3 years ago • 2 comments

Hi, I am trying to block unauthorized domains so only specific domain will have the option to fetch data. I tried several configurations options but none of them got me the right result - but I still succeed to fetch data via Postman. I only want to block unauthorized domains without the need of user authentication.

What am I doing wrong? Thanks!

image

dandin84 avatar Jan 18 '22 23:01 dandin84

Hello! It's been a long time since I used that feature. This is the function that should block domains: https://github.com/funkhaus/wp-graphql-cors/blob/master/includes/process-request.php#L153

drewbaker avatar Jan 28 '22 02:01 drewbaker

Hi and thanks for your reply! I saw the function and I guess there is an issue with it. I wanted to be sure that I used it correctly. I will debug it and try to make it work.

dandin84 avatar Jan 28 '22 02:01 dandin84

Closed as I think this was fixed previously. Please comment and I will reopen if this is still an issue.

drewbaker avatar Feb 05 '23 16:02 drewbaker