Comments (2)
@alfonsogarciacaro thank you, but I've removed the redirect and call the external service manually.
from fable-powerpack.
Interesting. The fetch bindings are just using the native fetch API so I don't think this is a problem of powerpack. Although it should be default option, some answers on the web recommend to use redirect: "follow"
. Unfortunately, it doesn't seem to be implemented yet in the Fetch RequestProperties. Can you try the following and see if it changes anything?
let props =
[ RequestProperties.Method HttpMethod.POST
requestHeaders [ContentType "application/json"]
RequestProperties.Credentials RequestCredentials.Sameorigin
RequestProperties.Body !^ body
!!("redirect", "follow")
]
GlobalFetch.fetch(RequestInfo.Url url, requestProps props)
from fable-powerpack.
Related Issues (20)
- a non-beta release HOT 1
- Support for node-fetch extensions? HOT 3
- Something weird with type inference in promises HOT 6
- Canβt understand what is the easy way to add custom headers in Fable.PowerPack.Fetch HOT 7
- `Promise` doesn't provide variants of `catch` and `either` where the rejection function returns another `Promise` HOT 6
- Make `Promise.catch` and `Promise.catchBind` emit "$0.then" to make it compatible with ad-hoc implementations HOT 5
- Get the response data when the server returns 400. HOT 2
- Update README instructions
- Retrieving object when Promise fails. HOT 7
- Extending Date.Local? HOT 9
- unwrapResult function and result computation expression not defined HOT 2
- JSON deserialization of postRecord response of a DU does not work as expected HOT 6
- "h" format result is incorrect for noon HOT 6
- Please release stable version HOT 2
- Fetch: get response body in case of 5xx response HOT 2
- Promise CE is executed multiple times if there are multiple subscribers HOT 7
- Can't open project in Visual Studio HOT 3
- Fetch with Fable 2: wrong ContentType header? HOT 4
- Split Fable.PowerPack in multiple packages? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fable-powerpack.