Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element API endpoint url for multisites? #192

Open
aaronrobb opened this issue May 23, 2024 · 0 comments
Open

Element API endpoint url for multisites? #192

aaronrobb opened this issue May 23, 2024 · 0 comments
Labels

Comments

@aaronrobb
Copy link

Description

I have a site with multiple "multisite" sites.
When using the Element-api endpoint it only creates it for the base url.
So if we have example.com and sub.example.com, element-api endpoint only gets created for example.com.
The issue is that we have cross-domain policy that won't let the basic example.com urls load on the sub.example.com.

Is there a way to set the endpoint to create/use the currentSite url?

Steps to reproduce

  1. Create endpoints via the element-api.php file
  2. Load sub-domain site and get errors about cross domain loading.

Additional info

  • Craft version: 3.9.5
  • PHP version: 7.4.33
  • Database driver & version: MySQL 5.7.44
  • Plugins & versions:
@aaronrobb aaronrobb added the bug label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant