WP-API / node-wpapi

An isomorphic JavaScript client for the WordPress REST API
http://wp-api.org/node-wpapi/
MIT License
1.68k stars 190 forks source link

Autodiscovery lacks documentation around CORS #249

Open joshlevinson opened 8 years ago

joshlevinson commented 8 years ago

When working with cross-origin requests, headers are only exposed when whitelisted. This means autodiscovery breaks unless a Access-Control-Expose-Headers header containing Link is sent.

While this issue is not specific to this library, I think it'd be helpful to document how to make in-browser cross-domain autodiscovery happen.

Happy to submit a documentation PR!

kadamwhite commented 8 years ago

That's a good point, documentation on this issue would be a welcome addition!

kadamwhite commented 7 years ago

@joshlevinson Good to meet you last night! Let me know if you want to pair up on this to knock it out briefly while we're at WCUS.