Google Ad Manager Package - Access control has been blocked by CORS policy

Hi, I have installed google ad manager package that is @frontity/google-ad-manager

and also put this code on frontity.settings.js file

{
“name”: “@frontity/google-ad-manager”,
“state”: {
“fills”: {
“googleAdManager”: {
“belowHeaderAd”: {
“slot”: “below-header”,
“library”: “googleAdManager.GooglePublisherTag”,
“priority”: 5,
“props”: {
“id”: “div-gpt-below-header”,
“unit”: “/1234/my-ad-unit-code”,
“size”: [320, 50],
},
}
}
}
}
},

But I am getting the error of access control has been blocked by CORS policy

Here is the link to the site - https://babacric.in/

Here is the screenshot

This CROS origin issue has been solved automatically. But the ads are not showing. Do I need to do anything else?

Now ads are coming. My ad slot was hiding behind the navbar, that’s why ad was not loading. Now it’s working. Thanks

1 Like