Skip to content

Add OCS API header per default - #12362

Merged
PVince81 merged 1 commit into
masterfrom
add-ocs-header-per-default
Nov 24, 2014
Merged

PVince81 merged 1 commit into
masterfrom
add-ocs-header-per-default

Conversation

@LukasReschke

Copy link
Copy Markdown
Contributor

Relieve @pvince from having to write it all the time ;-)

Relieve @pvince from having to write it all the time ;-)
@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: No new issues

@ghost

ghost commented Nov 21, 2014

Copy link
Copy Markdown

🚀 Test PASSed. 🚀
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/3066/
🚀 Test PASSed. 🚀

@PVince81

Copy link
Copy Markdown
Contributor

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.

@LukasReschke

Copy link
Copy Markdown
Contributor Author

Thanks... but are you sure ? There were reasons for that header ? @DeepDiver1975

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 ;-)

@LukasReschke

Copy link
Copy Markdown
Contributor Author

I'll still need to keep them in pyocclient to keep compatible with OC 6/7.

Sure. That code only adds it to all jQuery AJAX requests done from oC JS ;-)

@PVince81

Copy link
Copy Markdown
Contributor

Ah yes, it was late and I didn't look at the code.
But will it affect regular ajax calls (the non-OCS ones ?), I guess it won't ?

@LukasReschke

Copy link
Copy Markdown
Contributor Author

But will it affect regular ajax calls (the non-OCS ones ?), I guess it won't ?

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.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

fine with me 👍

@PVince81

Copy link
Copy Markdown
Contributor

👍

PVince81 pushed a commit that referenced this pull request Nov 24, 2014
@PVince81
PVince81 merged commit 49ad10c into master Nov 24, 2014
@PVince81
PVince81 deleted the add-ocs-header-per-default branch November 24, 2014 10:09
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants