1

In an updated and unadorned WordPress installation, with only the Classic Editor plugin enabled, and the 2017 theme, I get a weird error.

When I try to save a draft of a post containing this

<code>curl "http://localhost:64410/api/yoyo?value1=val&value2=val2"<code>

I always get a 403 Forbidden error on a splash page from WordPress. If I change it to

<code>curl -X GET "http://localhost:64410/api/yoyo?value1=val&value2=val2"<code>

or

<code>curl "localhost:64410/api/yoyo?value1=val&value2=val2"<code>

I don't get the 403 and the post goes through. Whisky Tango Foxtrot? I'm pretty sure I don't have anything misconfigured in my installation.

This looks like it might be some built-in cross-site-scripting-prevention trap or something. But it's an awfully crude error message.

Do you know how I can get my desired content into my post?

(I'm writing a tech post about web service development.)

  • Replace the <code> tag with <pre> and then write some CSS to make it look the same way the <code> tag would look. I took my personal site, replicated what you had and it worked just fine, not sure why it's having the issue you are. – Tony Djukic Apr 10 at 22:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.