tuananhzippy opened a new issue #1794: ModPagespeedAddResourceHeader CORS not 
working
URL: https://github.com/apache/incubator-pagespeed-mod/issues/1794
 
 
   Hello ModPageSpeed Team!
   
   I use module pagespeed for **Apache/2.4.6(Centos 7)**. I can not add header 
to enable CORS, i have read the example and done but it does not seem to work.
   
   `ModPagespeedAddResourceHeader "Access-Control-Allow-Origin" 
"http://www.example.com"`
   
   The way I do this is in the `/etc/http.d/pagespeed.conf` file:
   
   `ModPagespeedAddResourceHeader "Access-Control-Allow-Origin" "*"`
   `ModPagespeedAddResourceHeader "Access-Control-Allow-Credentials" "true"`
   `ModPagespeedAddResourceHeader "Access-Control-Max-Age" "28800"`
   `ModPagespeedAddResourceHeader "Access-Control-Allow-Methods" "POST, GET, 
OPTIONS, PUT, DELETE"`
   `ModPagespeedAddResourceHeader "Access-Control-Allow-Headers" "Content-Type, 
X-Auth-Token, Origin, Authorization"`
   
   Then I restarted Apache with the command `service httpd restart`. I checked 
the Request Response but still do not see the Header added above.
   
   Please help me. Thanks for reading.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to