Skip to content

Commit

Permalink
[Webiste] Switch the CORS Proxy URL to wordpress-playground-cors-prox…
Browse files Browse the repository at this point in the history
…y.net (#2074)

Updates playground.wordpress.net to use the new CORS Proxy URL. This
makes sure the requests are not routed through
https://playground.wordpress.net/cors-proxy.php anymore.

As a next step, we should restrict the access from
playground.wordpress.net

 ## Testing instructions

None, this is a production-only change. Merge, deploy, confirm it
worked.

cc @brandonpayton
  • Loading branch information
adamziel authored Dec 12, 2024
1 parent 68f5388 commit 5f7ad69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/website/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default defineConfig(({ command, mode }) => {
'CORS_PROXY_URL' in process.env
? process.env.CORS_PROXY_URL
: mode === 'production'
? '/cors-proxy.php?'
? 'https://wordpress-playground-cors-proxy.net/?'
: 'http://127.0.0.1:5263/cors-proxy.php?';

return {
Expand Down

0 comments on commit 5f7ad69

Please sign in to comment.