A Crystal web framework that makes building applications fast, simple, and enjoyable. Get started with quick prototyping, less bugs, and blazing fast performance.
If the origin header doesn’t exist, the CORS pipe should ignore it and not validate against the allowed list.
Actual behavior: [What actually happens]
Is validated and request failed using for example a GET request coming from the frontend to the API pipeline.
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
Version 0.34.0 of Amber and Crystal
Additional Information
As something else (I could be implementing it wrong), using http://localhost:8080 (npm server) and requesting a GET endpoint in the API pipeline on http://localhost:3000 (amber server) produces a missing allow origin error on the frontend. In the controller's action, I have
Description
When making a GET request from the frontend, the Amber CORS pipe will block the request.
Steps to Reproduce
Expected behavior: [What you expect to happen]
If the origin header doesn’t exist, the CORS pipe should ignore it and not validate against the allowed list.
Actual behavior: [What actually happens]
Is validated and request failed using for example a GET request coming from the frontend to the API pipeline.
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
Version 0.34.0 of Amber and Crystal
Additional Information
As something else (I could be implementing it wrong), using http://localhost:8080 (npm server) and requesting a GET endpoint in the API pipeline on http://localhost:3000 (amber server) produces a
missing allow origin
error on the frontend. In the controller's action, I havewhich I believe should allow the request, but doesn't seem to?