Symfony Framework in China Mobile Cmwap network access problem

Source: Internet
Author: User

Recently used Symfony framework to the mobile phone app backstage, found in China Mobile Cmwap network problems, all requests are routed to the root path

The image on the left is the original $_server object, and the image on the right is the $request->server object
Because Request_uri is changed, any request will be routed to the root path by the Symfony framework
and one less x-original-url request header.
Reason in the request class source code of Symfony

Can see when there is X-original-url request the head of the time to take it directly when Request-uri, but China Mobile cmwap more disgusting people, passed this head but did not pass right, now the code changed to

There is also the framework of the startup file Bootstrap.php.cache, which also has this code, the same changed to do it.

Symfony Framework in China Mobile Cmwap network access problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.