Request headers bag is missing Authorization header in Symfony 2?

前端 未结 8 1457
别那么骄傲
别那么骄傲 2020-11-29 01:30

I\'m trying to implement a custom authentication provider in Symfony 2. I\'m sending a test request using Fiddler and printing all headers server side; well, Authoriza

相关标签:
8条回答
  • 2020-11-29 01:46

    Another solution is to change your PHP handler to run PHP as Apache Module instead of as CGI application.

    0 讨论(0)
  • 2020-11-29 01:51

    We should authorise this header "Authorization" on the server side,

    it's also simply done with nelmioCorsBundle nelmio_cors: defaults: allow_credentials: false allow_origin: [] allow_headers: [] allow_methods: [] expose_headers: [] max_age: 0 hosts: [] origin_regex: false forced_allow_origin_value: ~ paths: '^/api/': allow_origin: ['*'] allow_headers: ['Authorization']

    0 讨论(0)
提交回复
热议问题