• Resolved mralimac

    (@mralimac)


    Hello,

    I am attempting to create an Ionic Capacitor that communicates with WordPress for login details.

    However Capacitor uses “capacitor://localhost” as the origin header when it talks to WordPress. WordPress will then return an empty Access-Control-Allow-Origin header which means CORS will fail.

    I’m not able to change the scheme to “http” or “https” as those are reserved by WKWebview.

    You can check this out in Postman by sending a request to your WordPress site with “custom://origin” set as the Origin Header in requests.

    I’ve managed to replicate this issue on a completely blank site with only default theme and plugins.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress Rest API doesn’t appear to handle custom URL schemes’ is closed to new replies.