danielflower / app-runner

Self-hosted platform as a service for Java, Node, Clojure, Scala, DotNet, Python and golang apps. Push to a git repo to deploy apps.
MIT License
71 stars 44 forks source link

API page is unavailable in self-host server #10

Open lawrenceching opened 6 years ago

lawrenceching commented 6 years ago

API page displayed abnormally and said "Can't read from server. It may not have the appropriate access-control-origin settings."

image

URL: http://hk1.imlc.me/app-runner-home/docs/api.html#/Application

Seems it's a CORS problem? Where can I configure the domain name I used? I only used the sample config file and export M2_HOME in my profile.

Hope for your advice

danielflower commented 6 years ago

This could be fixed with cors, but normally app runner home is hosted on an app runner instance so it just works. Out of interest, can you explain what you are doing in this case?

lawrenceching commented 6 years ago

I'm playing with App Runner to host some service that really helpful for myself. I always write some tiny project to serve myself and deploy it to server is not an easy task(compare with App Runner).

What I'm going to do is to test whether or not I can access those admin API via open Internet access, for security reason.

But now I've blocked that my projects are Gradle based and App Runner doesn't support gradle atm.