You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
Fastly will begin requiring an API key to be present in purge by key requests starting mid October.
This means that requests to the endpoint - POST https://api.fastly.com/service/:id/purge/:key will require a Fastly-Key or X-Fastly-Key header to be present and contain the correct key.
After browsing source, it looks like if a user is not fully authed, the existing implementation will work, but if the user is fully authed only the cookie is passed, not the API key - see purge_service_by_key and _fetch.
If it helps, you can check out how we handle this in other clients by looking at these PR's in fastly-py and fastly-ruby
The text was updated successfully, but these errors were encountered:
acmcelwee
added a commit
to acmcelwee/fastly-python
that referenced
this issue
Sep 24, 2020
Fastly will begin requiring an API key to be present in purge by key requests starting mid October.
This means that requests to the endpoint -
POST https://api.fastly.com/service/:id/purge/:key
will require aFastly-Key
orX-Fastly-Key
header to be present and contain the correct key.After browsing source, it looks like if a user is not fully authed, the existing implementation will work, but if the user is fully authed only the cookie is passed, not the API key - see purge_service_by_key and _fetch.
If it helps, you can check out how we handle this in other clients by looking at these PR's in fastly-py and fastly-ruby
The text was updated successfully, but these errors were encountered: