iabtcf-es icon indicating copy to clipboard operation
iabtcf-es copied to clipboard

Nuxt on SSR with window & XMLHttpRequest

Open andig89 opened this issue 4 years ago • 0 comments

1.1.4

Module (cmpapi, core)

https://codesandbox.io/s/cmp-on-ssr-1ekp4

I need run @iabtcf/cmpapi on SSR where is no window and XMLHttpRequest object. I can set in nuxt.config in global scope but window break another packegs :/. Only what I can do now is fork and detect global object and use it instead of window. The same thing with XMLHttpRequest.

andig89 avatar Nov 03 '20 17:11 andig89