If prompted by CROSS ORIGIN, read the following:
I ran into this situation, and first decided to use the Authorization header, and then deleted it, faced with the following problem.
Authorization title is treated as a custom title. Therefore, if a cross-domain request is performed using the Autorization Header, the browser first sends the request before the flight. A preprofessional request is an HTTP request using the OPTIONS method, which separates all the parameters. Your server should respond with an Access-Control-Allow-Headers header that has the value of your custom header ( Authorization header).
Thus, for each request sent by the client (browser), the browser requests an additional HTTP request (OPTIONS). This has degraded the performance of my API. You should check if this reduces performance. As a workaround, I send tokens in the http parameters, which, as I know, is not the best way to do this, but I could not compromise performance.
Abhishek Kumar Feb 20 '16 at 15:33 2016-02-20 15:33
source share