-
-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provideEmbeddedHeaders not working in <img> tag #533
Comments
Hi @AnuDharmarajan, and thanks for your contribution! You didn't explain how you came up to the conclusion that the headers were not passed? Do you have access to the server logs? I'll be happy to help when you provide additional information. Thanks! |
@jsamr Thank you for your quick replay. I don't have access in the server. The image is in the share point and we are passing the share point token for Authorization. |
@AnuDharmarajan Did you manage authentication successfully by other means, with postman or other HTTP utilities, so that you can assert this library is faulty? The react-native-render-html/packages/render-html/src/__tests__/component.render-html.test.tsx Lines 834 to 857 in 4c63e99
|
I have managed the authentication successfully in the postman and Image view also. It works fine.But in the Renderhtml it is not working. |
@AnuDharmarajan Can you log in the console from the first line of your |
The console is called when there is a img tag. I have given a sample HTML in the snippet because I am not able to provide the correct URL in the public platform. |
@AnuDharmarajan I am reviewing the code; will let you know. |
@AnuDharmarajan It looks like the |
@jsamr Thank you. |
@AnuDharmarajan Should be fixed in v6.3.0, let me know! |
Decision Table
<yyy>
is not rendered”Good Faith Declaration
Description
I have added Authorization in img tag it is not working.
React Native Information
RNRH Version
I am using react-native-render-html Version 6.1.0
Tested Platforms
Reproduction Platforms
Minimal, Reproducible Example
function provideEmbeddedHeaders(uri, tagName) {
}
return( <RenderHtml
contentWidth={Dimensions.get('window').width - wp('10%')}
source={{html: '<img src="https://xxxx.xxx.xx/xxxx/xx/xxxx/xxx/xxxx/23553.png"'}}
scrollEnabled={false}
//enableCSSInlineProcessing={true}
baseStyle={{fontSize:normalize(13)}}
emSize = {normalize(13)}
renderersProps={renderersProps}
provideEmbeddedHeaders={provideEmbeddedHeaders}
enableCSSInlineProcessing={true}
//absoluteFontSizesPixelMap ={'large'}
/>
)
Additional Notes
No response
The text was updated successfully, but these errors were encountered: