Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Add CORS support to custom headers in transaction's api #191

Closed
rferro opened this issue Jun 12, 2016 · 0 comments
Closed

Add CORS support to custom headers in transaction's api #191

rferro opened this issue Jun 12, 2016 · 0 comments
Assignees
Milestone

Comments

@rferro
Copy link

rferro commented Jun 12, 2016

Make POST calls to transaction's api enable CORS with pre-flight because custom headers are required.

ExpressJS sends by default:

Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Origin: *

Without custom headers, everything works.

Adding express cors to load in the server, or load only in the post routes that require custom headers, everything will work perfectly.

@karmacoma karmacoma added this to the Version 0.3.2 milestone Jun 13, 2016
@karmacoma karmacoma self-assigned this Jun 13, 2016
@karmacoma karmacoma removed the ready label Jul 5, 2016
@karmacoma karmacoma modified the milestones: Version 0.3.3, Version 0.3.2 Aug 9, 2016
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

2 participants