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

Enable CORS for https://otp.gophillygo.org/ #948

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

Enable CORS for https://otp.gophillygo.org/ #948

flibbertigibbet opened this issue Dec 15, 2017 · 2 comments

Comments

@flibbertigibbet
Copy link
Contributor

Setting the otp_host ansible environment variable to https://otp.gophillygo.org/ fails because CORS is not configured for that domain. However, setting the OTP host to the Cloudfront domain that https://otp.gophillygo.org/ points to does work.

Configure https://otp.gophillygo.org/ to allow CORS on AWS. This will allow for local development while pointing to the production OTP server, without needing to update the otp_host after each redeploy.

@hectcastro
Copy link
Contributor

Is this related to Access-Control-Allow-Origin is set to https://gophillygo.org? Having some difficulty understanding the failure and success behavior you're describing.

@flibbertigibbet
Copy link
Contributor Author

The failure that routing requests to OTP fail if the otp subdomain is used for otp_host in the group_vars.

(This is pretty low priority, by the way, since the Cloudfront URLs work fine.)

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

No branches or pull requests

2 participants