From where are you calling your endpoint? How are you authenticating? If you are using Basic Authentication, you have to allow that in your config as well.
from the browser and postman. I do not have any authentification.
I just want to make an endpoint for simple ajax calls with no auth required.
Am i wrong?
And secondly add your authentication credential (I use the Rested app, not Postman, but I guess you can add your credentials somewhere in Postman as well).
If you only want an endpoint with no authentication, use a normal route outside the API.