plugins – CORS Error when using TranslatePress and REST API


I’m using the TranslatePress plugin to provide translations for my website. The default version is served without language slugs:, and the translated versions are served through (or any other two-letter language name slugs).
When using WordPress REST API, works fine, but throws CORS error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)

what should I do?

Shahriar 2 years 2021-03-22T13:44:37-05:00 0 Answers 0 views 0

Leave an answer