Add Scratch Addons identification to /csrf_token route - #7646
Conversation
|
The requests sent by the background page of the extension to scratch.mit.edu endpoints (/session, /csrf_token, etc) can be identified with some degree of confidence by checking the value of the It is unlikely there is other software used by hundreds that requests /csrf_token so I think we should assume it is Scratch Addons. |
|
Related: #6729 |
|
To clarify, due to #6614 we can affirm that Scratch Addons is sending no more than |
|
Superseded by #7647. These requests are no longer sent, so there's nothing we can add these URL params to. |
At Scratch we're seeing some extremely high request rates to these endpoints (orders of magnitude higher than other endpoints), we would like to identify which requests are coming from Scratch Addons.
This change adds a
?sa=trueparameters to requests to these endpoints. It has no functional impact on Scratch Addons' use, it will help us diagnose the issue.If possible, if we could get these changes in as soon as possible, that would be great!!