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

[QUESTION] Deployment API_BASE_URL #64

Open
bolicd opened this issue Dec 15, 2017 · 2 comments
Open

[QUESTION] Deployment API_BASE_URL #64

bolicd opened this issue Dec 15, 2017 · 2 comments

Comments

@bolicd
Copy link
Contributor

bolicd commented Dec 15, 2017

Hi,

is there a way to add wildcard or something else to API_BASE_URL param?

Im asking this because I have a domain www.something.com. If i set API_BASE_URL , everything works but if I do something.com, I get CORS error.

Since I can set only one API_BASE_PARAM any way to set it to work in both ways? (www and * )

THanks

@mz026
Copy link
Owner

mz026 commented Dec 15, 2017

Hi @bolicd ,

I think the CORS setting should be done on the API server side instead of here (the universal-rendered app should act as client side when calling the APIs).

@bolicd
Copy link
Contributor Author

bolicd commented Dec 29, 2017

Hey,

there is no issue here one just has to be aware of this when redirecting from multiple domains. I've implemented this on web server level, basically multiple domains are redirected to the one root domain which uses one API_BASE_URL.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants