-
GCP and Gemini allow applying API key restrictions in order to secure the API keys from misuse. This is described in the documentation as https://cloud.google.com/docs/authentication/api-keys#securing. I tried to resstrict the URLs using the HTTP referrers https://cloud.google.com/docs/authentication/api-keys#http instructions. When I send a request using Prism however, the referrer is set to
Is there some way to specify the referer? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Nothing in Prism, but under the hood Prism uses the Laravel Http client so you could set the header using a global middleware. I would have thought using the IP option would be more secure though. |
Beta Was this translation helpful? Give feedback.
Nothing in Prism, but under the hood Prism uses the Laravel Http client so you could set the header using a global middleware.
I would have thought using the IP option would be more secure though.