This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 1 voice.

Last updated by Patrick Cruz 4 months ago.

Author Posts
July 16, 2019 at 5:41 pm

Patrick Cruz

I am trying to:

Cancel a job.

Link to a page where the issue can be seen:

hidden link

I expected to see:

the job to disappear

Instead, I got:

JSON.parse: unexpected character at line 1 column 1 of the JSON data

Got an JS error:
TypeError: n.props is undefined - hidden link

July 16, 2019 at 6:26 pm #4223219

Patrick Cruz

It looks like it's related to CORS policy. we have it set to only allow our domain.

Do you know which domains do I need to allow? I tried wpml.org but no luck.

July 16, 2019 at 8:24 pm #4223809

Patrick Cruz

nvm. I didn't set it right.

for anyone who's having this issues you need to allow api.wpml.org

My issue is resolved now. Thank you!