To ensure a Neuron can be called from a front-end service, the CORS configuration of Neurons endpoints in Prompteus are very permissive. This is intentional, and is not a security risk.
Access Control Settings
The Access Control section of the Neuron Settings page allows you to control who can access your Neuron.Public Access

Public Access settings in the Neuron Settings page
We just want to make this extremely clear: Public access means anyone with the URL can call your Neuron. Better safe than sorry!
Referer Restrictions

Referer Restrictions settings in the Neuron Settings page
We recommend using Referer Restriction in combination with Rate Limiting to prevent abuse.
IP Restrictions

IP Restrictions settings in the Neuron Settings page
API Key Authentication

API Key
Authorization header of the request, as a Bearer token.
Replace
<organization-slug> with your organization’s slug, which you can manage in the Team Settings.JWT Authentication
JWT authentication allows you to authenticate requests to your Neuron using a JSON Web Token (JWT). This is useful if you want to authenticate requests to your Neuron from a specific front-end application.A good introduction to JWTs can be found on the jwt.io website.

JWT Authentication using a Shared Secret

JWT Authentication using a JWKS Endpoint
Authorization header of the request, as a Bearer token.
Username Property Path
The Username Property Path is the path to the username property in the JWT. This is used to set the username of the request in the Neuron. For example, it could besub or email. The username is currently used in two ways:
- When using the Rate Limiting feature, the username is useful to limit the rate of requests from a specific user.
- When reading Neuron logs, the username is used to identify which user made the request.
In a future release, additional JWT properties will be supported and passed to the Neuron context, allowing you to run custom logic in your Neuron based on the user’s identity. Let us know if you have a specific use case in mind by contacting us.