Repository navigation
Add OCS API header per default - #12362
Conversation
Relieve @pvince from having to write it all the time ;-)
|
The inspection completed: No new issues |
|
🚀 Test PASSed. 🚀 |
|
Thanks... but are you sure ? There were reasons for that header ? @DeepDiver1975 I'll still need to keep them in pyocclient to keep compatible with OC 6/7. |
Yes. I am sure. I added that header 😉 It is only to to prevent being the cookies re-used from another domain. It's fine doing that here ;-) |
Sure. That code only adds it to all jQuery AJAX requests done from oC JS ;-) |
|
Ah yes, it was late and I didn't look at the code. |
It will add the header as well there, but that doesn't matter (it's simply not processed further). The CSRF token is also sent with every request even if not necessarily needed in every case. |
|
fine with me 👍 |
|
👍 |
Add OCS API header per default
Relieve @pvince from having to write it all the time ;-)