Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Brendan · Oct 05, 2015 at 12:39 AM ·

X-Athentication -> X-Authorization

jonnybee12345
started a topic on Sun, 05 April 2015 at 2:13 AM

Can someone explain the difference between X-Athentication and X-Authorization request headers?

I'm working on a facebook canvas application and using ajax to handle the playfab requests.

It seems on making a post request I get the following header response

Access-Control-Allow-Headers:

content-type, X-Authorization, X-PlayFabSDK, X-ReportErrorAsSuccess

As you can see, no X-Authentication.

However everything works correctly when I use X-Authorization to send my session ticket.

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Oct 05, 2015 at 12:39 AM

Best Answer
Brendan Vanous said on Tue, 07 April 2015 at 3:21 PM

Hi again,

This should now be fixed - we've updated our CORS headers to account for this. Please do let us know if you're still seeing any issues.

Brendan


5 Comments
Brendan Vanous said on Sun, 05 April 2015 at 10:39 PM

There's effectively no difference, as under the covers our code accepts both X-Authentication and X-Authorization. However, I'd recommend using X-Authentication, since that's what our docs cover (and so that one is guaranteed to remain the same). Looking at the service code, I do see where it can return the string you called out. Thanks for mentioning this, I'll get it corrected so that it's not confusing.

Brendan


jonnybee12345 said on Mon, 06 April 2015 at 12:39 AM

Thanks Brendan,

Sadly on Chrome <and maybe other browsers> if the request header isn't found in the responses allow-headers the XMLHttpRequest will fail with header not allowed message. ( this is how I discovered the mismatch in first place :).


Brendan Vanous said on Mon, 06 April 2015 at 12:50 AM

Ah, a good point - thanks. I'll bring this up with the engineering team tomorrow.


Brendan Vanous said on Tue, 07 April 2015 at 3:21 PM

Hi again,

This should now be fixed - we've updated our CORS headers to account for this. Please do let us know if you're still seeing any issues.

Brendan


jonnybee12345 said on Wed, 08 April 2015 at 2:32 AM

Perfect, Thanks Brendan, I'll let you know if I see any issues.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    No one has followed this question yet.

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges