wtf_wikipedia icon indicating copy to clipboard operation
wtf_wikipedia copied to clipboard

Allow passing of origin param

Open rlach opened this issue 3 years ago • 2 comments

At this line https://github.com/spencermountain/wtf_wikipedia/blob/7f08539402dd9dd2a154a591932ba91b2decbdeb/src/_fetch/makeUrl.js#L11

you set origin to * and this cannot be changed anywhere. Due to how pages are configured we need to pass proper origin both in Origin header and origin parameter - and those have to match. It would be great if wtf_wikipedia had .fetch parameter to overwrite this.

rlach avatar Jan 06 '22 21:01 rlach

Would it be enough to set the origin parm equal to the header if provided? Or does it need to be changed independently?

wvanderp avatar Jan 06 '22 21:01 wvanderp

For my needs it can be changed together.

rlach avatar Jan 06 '22 22:01 rlach