I'm using amp-iframe
in a page with a Google map in the iframe. The page works fine and validates on all the browsers I tried, except Safari on MacOS.
I get this error in the console:
Refused to get unsafe header "AMP-Access-Control-Allow-Source-Origin"
I tried adding these headers to my server:
Header set Access-Control-Allow-Origin *
Header set Access-Control-Allow-Headers AMP-Access-Control-Allow-Source-Origin
Header set Access-Control-Expose-Headers AMP-Access-Control-Allow-Source-Origin
Header set AMP-Access-Control-Allow-Source-Origin https://example.com
However, I still see the same error. It only occurs in Safari. It seems CORS related. Anyone can help?