VikasB
3 years agoBoss
Get request origin in endpoints
I want to get the request origin in endpoint. For example, I have created a endpoint -
https://community-stage.khoros.com/eksre65699/plugins/custom/khoros/khoros/grz.users-metrics
Now I want to keep this endpoint open only for specific origin like if request is coming from Khoros website then it should return the result but if request is coming from any other website it should return "Anauthorised Request" as a response.