-
-
Notifications
You must be signed in to change notification settings - Fork 596
Add custom headers to each server request #1014
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
Comments
I think there isn't a way to do that yet. Is this something that you'd be willed to tackle? |
Awesome @dplewis ! Always there to save the day. Looking forward to trying this out later |
@dplewis Do you have an example of integrating this ? Ill try it out now |
Please note these headers will be sent with every request. Sorry for the late reply. For some reason this comment didn't send the first time. |
Thanks man, just for anyone who stumbles on this and is using Typescript, there is no definition for
|
Can you open a fix on the DefinatelyTyped repo? https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/parse/index.d.ts I can update the docs with the core manager settings. |
Sure ill give it a go, Ill see if I have any other things to add to it. |
I have a problem when set the request headers:
When I add thar headers: the request only have this:
and the request show me this error:
But, when I remove the the Parse.CoreManager.set, the request headers show this:
and works againd |
@ferchuhill - got the same error however all you need to do is add these additional headers in the
|
For apps hosted on Google App Engine there is an option to split traffic between servers.
For instance you have an app backend which is updated and you want to only allow traffic from the new app version to visit the new backend version, this is called traffic splitting in GAE and can be done by adding a custom header to all TCP requests.
My app has a centralised function for executing all cloud functions
Parse.Cloud.run()
is there any way at all to add a custom header to this call so that I can split traffic between different backend versions ?It would be great if this could be added somehow into Parse.initialise()
#603
parse-community/Parse-SDK-iOS-OSX#877
parse-community/parse-server#1059
The text was updated successfully, but these errors were encountered: