Network access is not working from 'Thank you' page

Hello,

Could you please help me with one issue I am currently facing?
My extension interacts with the customer at Thank you page via modal. It has target ‘purchase.thank-you.block.render’ and it is supposed to send customer’s answers to our backend via REST.
I have set ‘network_access = true’ in the configuration file, I’ve allowed network access at the app API access page and it all seems to be working perfectly fine if I choose any other target. For instance, if I for the test purposes move it to “purchase.checkout.block.render” it all works just fine and I am able to interact with my backend through REST (which makes me think that network is enabled correctly).
However if I use ‘purchase.thank-you.block.render’ as a target, I get:
permission to use fetch() must be specified under [capabilities] with flag “network_access = true”; this can be done within your extension’s configuration.
Is network access supposed to work at all from the Thank you page? Or it is disabled (maybe due to the security reasons)?
Any help would be greatly appreciated!
Thank you!

HI Linuxoobraznoe,

I don’t believe there is a restriction on the TY page for network access, can you share the part in the toml file where network access is configured?

Hello Liam,

Thank you very much for your response!
In shopify.extension.toml I had the following configuration for the network:

[extensions.capabilities]
network_access = true
Also I had network allowed at app API access page

![app_api_access_page.png|983x220](upload://gh698VvCxgL3ojaIjO1jJDCmGjo.png)

But basically, I think the question can be now closed, as I decided to delete extension, recreate it from scratch and fully reinstall app after that and it seems to be working fine now.
Thank you very much!