You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is example code that follows the two paragraphs listed here. The example code shows usage for the first paragraph. Great! The second paragraph ends with "for example." I was not reading carefully and interpreted that as saying the example illustrated the second paragraph's guidance in action. Oops on my part, but the words and sequencing of the material made it easy to misinterpret.
Don't forget to enable [CORS (Links to an external site.)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) in your app. Uncomment the following in [config/initializers/cors.rb](https://learning.flatironschool.com/server/config/initializers/cors.rb). Don't forget to change the origins from example.com to *
Depending on the use-case and needs of our API, we might want to limit access to our app. For example, if our React frontend is deployed to myCoolReactApp.com, we might want to limit access to that domain only. If certain endpoints are meant to be public, we can make those available but limit to GET requests, for example.
Additional Context
No response
Suggested Changes
The example code that follows the two paragraphs listed above should follow the first paragraph, not the second one.
The text was updated successfully, but these errors were encountered:
Canvas Link
https://learning.flatironschool.com/courses/5188/assignments/181024?module_item_id=399413
Concern
There is example code that follows the two paragraphs listed here. The example code shows usage for the first paragraph. Great! The second paragraph ends with "for example." I was not reading carefully and interpreted that as saying the example illustrated the second paragraph's guidance in action. Oops on my part, but the words and sequencing of the material made it easy to misinterpret.
Additional Context
No response
Suggested Changes
The example code that follows the two paragraphs listed above should follow the first paragraph, not the second one.
The text was updated successfully, but these errors were encountered: