Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

I can't add Components #139

Open
enrimr opened this issue Oct 24, 2018 · 7 comments
Open

I can't add Components #139

enrimr opened this issue Oct 24, 2018 · 7 comments

Comments

@enrimr
Copy link

enrimr commented Oct 24, 2018

When I click con Add button, a pop up appears. Then I configure the name, click on Add and nothing happens.

@ks888
Copy link
Owner

ks888 commented Oct 25, 2018

Thank you for the report. I launched a new stack, but I can't reproduce the issue.

Can you try it again while opening the browser's developer tool? The POST request to https://[your cloud front id].cloudfront.net/api/components should be sent.

@enrimr
Copy link
Author

enrimr commented Oct 25, 2018

Hi!

Only the OPTIONS request is sent.

captura de pantalla 2018-10-25 a las 15 37 56

@ks888
Copy link
Owner

ks888 commented Oct 25, 2018

Hmmm, that's strange.

It looks your 'Console' tab in the developer tool shows some error messages (6 errors and 3 warnings?). Can you share these messages?

@enrimr
Copy link
Author

enrimr commented Oct 25, 2018

It seems that we forgot to configure something manually on our AWS account?

captura de pantalla 2018-10-25 a las 17 30 52

@enrimr
Copy link
Author

enrimr commented Oct 26, 2018

It seems that we haven't configured the ApiGateway to allow CORS.

@ks888
Copy link
Owner

ks888 commented Oct 30, 2018

It's like you access the status page using the custom domain, but the domain name of the API server is not same as the custom domain. So it violates the browser's same origin policy.

I'm not sure why it happens. Possible reasons are:

  • The CloudFormation stack is not updated. Check the steps described here: https://lambstatus.github.io/set-up-custom-domain
  • The setting file is cached. The setting file called settings.js points to the domain name of the API server. The file may be cached, though it should be cached for only 5 min. Reload the page and check the content of the file. What is the value of __LAMBSTATUS_API_URL__ variable?

@builtbyproxy
Copy link

Can this be closed?

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

No branches or pull requests

3 participants