react-dfp
react-dfp copied to clipboard
CORS error
i have issue with cors
and i see in the example site have same error
google wants a https
@mustafa220 i used ngrok, in find issue if we don't have networkid
@meodemsao are u still having issues?, if yes, i'd suggest you to try the tweak @mustafa220 suggested, in any case, in any case, this seems to be an issue w gpt/dfp itself rather than react-dfp.
when i comment disable using networkid is running ok. but i think it's only hot fix. the lib need check networkid == null or undefine
Im having same problem and set my networkid to our google ad manager id "218........"
UPDATE: sorry I did not understand the above solution. What worked for me was to do this on the Provider:
<DFPSlotsProvider dfpNetworkId="" >