Background: The server provides the https API to the browser ajax and allows cross-domain access:
1. httpd.conf
Remove the comment LoadModule headers_module modules/mod_headers.so< Br>
2. Modify the following configuration
conf/extra/httpd-ssl <VirtualHost> ... Header add Access-Control-Allow-Origin * Header add Access- Control-Allow-Methods "GET, POST, OPTIONS" Header add Access-Control-Allow-Headers "Content-Type" </VirtualHost>
Here you must add Header Add Access-Control-Allow-Headers "Content-Type".
The guess is because the type of client to send is application/json,
so it appears in the OPTIONS request header sent:
Access-Control-Request-Headers: Content-Type, Accept
3. Restart apache
See: http://www.w3.org/TR/cors/
Port mapping is used to access specific port services from the Intern
For small user groups or home users to access the Internet, dial-up Internet acce
From the system architecture point of view, the current commercial servers can be roughly divided in
is creative, there is limitless possibilities! During the summer vacation, many college friends who
Protect against four levels of attacks to ensure Linux server security
Perfect solution for IIS server unable to load application
Three server load balancing user classification
FTP configuration and application under Linux
How to identify if the VPS host is normal
Cloud Application Accident Emergency Response and Notification and Remediation
How to view the process of the Linux server
Establish a WEB server on the WIN98 peer-to-peer network
How to solve the storage problem in server virtualization?
Planning server virtualization should consider the top ten issues
In-Depth Analysis of Server Web Cache
Experts answer the network management FAQ: How to remotely restart the server
[Download] Win10 Build 10147 64-bit ISO image and language pack download address leaked
The win10 group policy namespace has been defined
Look over: the advantages of 64-bit Win XP operating system
Windows 8 operating system features a first look
How to use the full screen mode of the viewer under Win10 system
After installing Vista, the blue screen solution is
How to solve the win7 language toolbar?
XP system can't open online neighbors? 9 big ways to deal with easily