Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Lab 4 hacky solution #57

Open
tommyhegarty opened this issue Oct 24, 2019 · 0 comments
Open

Lab 4 hacky solution #57

tommyhegarty opened this issue Oct 24, 2019 · 0 comments

Comments

@tommyhegarty
Copy link

The fourth lab, when setting up preflight headers, tells you to set CORS preflight and change the status code to 200 in the event of an options call. This is really hacky -- if you put any sort of key or header verification in the proxy endpoint then this is only working because the program initially fails. Wouldn't it be safer and smarter to move api key verification, quota limiting, etc to a target endpoint and remove the default fault rule?

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

1 participant