-
Notifications
You must be signed in to change notification settings - Fork 156
CORS not working after enabling page speed on Apache #2080
Comments
And what is your CROS issue? |
I have two subdomains one is app.example.com and the other is api.example.com after enabling the page speed module the app can not any endpoint to API from the browser. If the disabled the module it works. The page speed module config is already shown above. |
And these urls are rewrited by pagespeed? |
And these urls are rewrited by pagespeed? Have you the content-security-policy header in place? What error have you in the browser console? |
Hi |
Hi
I have enabled page speed on Apache/2.4.25 (Debian)
Running on
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
And added settings into the page speed are following
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"
Still facing CROS issue
The text was updated successfully, but these errors were encountered: