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

Test Access Control headers #8

Closed
wants to merge 2 commits into from
Closed

Test Access Control headers #8

wants to merge 2 commits into from

Conversation

Hamled
Copy link

@Hamled Hamled commented Nov 21, 2018

We should do this for our other API projects.

In fact, TDD practice would be to have written these tests before committing these changes, or similar code in any of our projects.

* `host` - Default host in tests (unconfigured it's `www.example.com`)
* `localhost:3000` - Default Rails/create-react-app host
* `null` - Origin value for requests made by `file://` sources
droberts-sea pushed a commit to AdaGold/inspiration-board-api that referenced this pull request Dec 12, 2018
ala AdaGold/trip-api#8

Removing the CORS configuration lines from config/application.rb causes
this test to fail.
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

Successfully merging this pull request may close these issues.

2 participants