[wp-trac] [WordPress Trac] #62232: WordPress Application Password CORS error when Headless WordPress URL and Site URL are different

WordPress Trac noreply at wordpress.org
Tue Oct 29 13:52:53 UTC 2024


#62232: WordPress Application Password CORS error when Headless WordPress URL and
Site URL are different
-----------------------------------------------+---------------------------
 Reporter:  archoda                            |       Owner:  (none)
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  Awaiting
                                               |  Review
Component:  REST API                           |     Version:  6.6.2
 Severity:  critical                           |  Resolution:
 Keywords:  has-screenshots reporter-feedback  |     Focuses:  ui, rest-api
-----------------------------------------------+---------------------------

Comment (by archoda):

 My clients' website is headless. It's running SvelteKit in SSR on a
 Netlify/Nodejs stack and WordPress on a yet to be determined host. That's
 the reason for the CORS/Origin issue. My current development environment
 MAMP/Back-end, Vite/Front-end, so, there is never a mysite.local/wp-json
 route. There would only every be a content.mysite.local/wp-json ( pointing
 to the WordPress host ).

 This is where my Application Password comes in. I'm using it to fetch/auth
 the calls from Sveltekit ( mysite.local ) to WordPress (
 content.mysite.loca ).

 Sorry if I confused at all on my original post. Hope this clears it up.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62232#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list