-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 ;-)