react-dfp icon indicating copy to clipboard operation
react-dfp copied to clipboard

CORS error

Open meodemsao opened this issue 5 years ago • 5 comments

i have issue with cors

and i see in the example site have same error

image_2019_11_14T08_12_59_828Z

meodemsao avatar Nov 14 '19 08:11 meodemsao

google wants a https

mustafa-colakoglu avatar Nov 20 '19 09:11 mustafa-colakoglu

@mustafa220 i used ngrok, in find issue if we don't have networkid

meodemsao avatar Nov 21 '19 04:11 meodemsao

@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.

jaanauati avatar Dec 05 '19 19:12 jaanauati

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

meodemsao avatar Dec 09 '19 12:12 meodemsao

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="" >

hatched-esther avatar Feb 22 '21 19:02 hatched-esther